From da0266005ab8951186ce0a77e643f78472487f4a Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sun, 20 Dec 2009 21:18:57 +0100 Subject: [PATCH] cpu-all.h: fix cpu_get_real_ticks() #ifdef MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Hervé Poussineau Signed-off-by: Aurelien Jarno (cherry picked from commit 9706c06d9c93b6d94785b6b14565b61ddae95a04) --- cpu-all.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu-all.h b/cpu-all.h index e21437499..57b69f886 100644 --- 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 -- 2.39.2