chiark / gitweb /
Add cpu type checking for aarch64 in sattypes.h file
authorWei Huang <wei@redhat.com>
Tue, 21 Nov 2017 04:45:00 +0000 (23:45 -0500)
committerWei 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

index 79bb47dc8071dc182b4538d2b52648fa2c600650..251e8bc254e6aa751c3c3cbe9409520c8b29825b 100644 (file)
@@ -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