OSDN Git Service

cpu-all.h: fix cpu_get_real_ticks() #ifdef
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 20 Dec 2009 20:18:57 +0000 (21:18 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 20 Dec 2009 20:18:57 +0000 (21:18 +0100)
Reported-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
cpu-all.h

index e214374..57b69f8 100644 (file)
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -1017,7 +1017,8 @@ static inline int64_t cpu_get_real_ticks (void)
 #endif
 }
 
-#elif (defined(__mips_isa_rev) && __mips_isa_rev >= 2) || defined(__linux__)
+#elif defined(__mips__) && \
+      ((defined(__mips_isa_rev) && __mips_isa_rev >= 2) || defined(__linux__))
 /*
  * binutils wants to use rdhwr only on mips32r2
  * but as linux kernel emulate it, it's fine