chiark
/
gitweb
/
~ian
/
stressapptest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8345145
)
Add cpu type checking for aarch64 in sattypes.h file
author
Wei Huang
<wei@redhat.com>
Tue, 21 Nov 2017 04:45:00 +0000
(23:45 -0500)
committer
Wei Huang
<wei@redhat.com>
Tue, 21 Nov 2017 05:06:59 +0000
(23:06 -0600)
To avoid the warning message while compiling on aarch64 machines, this
patch adds STRESSAPPTEST_CPU_AARCH64 support in CPU type checking to
sattypes.h file
Signed-off-by: Wei Huang <wei@redhat.com>
src/sattypes.h
patch
|
blob
|
history
diff --git
a/src/sattypes.h
b/src/sattypes.h
index 79bb47dc8071dc182b4538d2b52648fa2c600650..251e8bc254e6aa751c3c3cbe9409520c8b29825b 100644
(file)
--- a/
src/sattypes.h
+++ b/
src/sattypes.h
@@
-227,6
+227,8
@@
inline void cpuid(
return;
#elif defined(STRESSAPPTEST_CPU_ARMV7A)
return;
+#elif defined(STRESSAPPTEST_CPU_AARCH64)
+ return;
#else
#warning "Unsupported CPU type."
#endif