From 0b493ec43fc34ce6268e11c20e25fc9438198564 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 14 Feb 2010 14:09:42 -0800 Subject: [PATCH] sysdump: don't force cpuid() to be inlined The compiler can usually decide that better than we can... Signed-off-by: H. Peter Anvin --- com32/sysdump/cpuid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/com32/sysdump/cpuid.c b/com32/sysdump/cpuid.c index 5bfd4f0..ac80f22 100644 --- a/com32/sysdump/cpuid.c +++ b/com32/sysdump/cpuid.c @@ -39,8 +39,7 @@ static bool has_eflag(uint32_t flag) return !!((f0^f1) & flag); } -static inline void get_cpuid(uint32_t eax, uint32_t ecx, - struct cpuid_data *data) +static void get_cpuid(uint32_t eax, uint32_t ecx, struct cpuid_data *data) { asm("pushl %%ebx ; cpuid ; movl %%ebx,%1 ; popl %%ebx" : "=a" (data->eax), "=r" (data->ebx), -- 2.7.4