[syslinux:pathbased] sysdump: don't force cpuid() to be inlined

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Feb 14 14:12:15 PST 2010


Commit-ID:  0b493ec43fc34ce6268e11c20e25fc9438198564
Gitweb:     http://syslinux.zytor.com/commit/0b493ec43fc34ce6268e11c20e25fc9438198564
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 14 Feb 2010 14:09:42 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 14 Feb 2010 14:09:42 -0800

sysdump: don't force cpuid() to be inlined

The compiler can usually decide that better than we can...

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 com32/sysdump/cpuid.c |    3 +--
 1 files changed, 1 insertions(+), 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),



More information about the Syslinux-commits mailing list