From 108fa57d92f294621a8e9811aebec0eadec2a5e0 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Tue, 10 Feb 2009 18:52:07 +0100 Subject: [PATCH] hdt: Removing useless define --- com32/include/cpuid.h | 3 --- com32/modules/cpuid.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/com32/include/cpuid.h b/com32/include/cpuid.h index c24c798..f8e5644 100644 --- a/com32/include/cpuid.h +++ b/com32/include/cpuid.h @@ -133,9 +133,6 @@ static inline __purefunc bool test_bit(int nr, const uint32_t *addr) return ((1UL << (nr & 31)) & (addr[nr >> 5])) != 0; } -#define test_cpu_cap(c, bit) \ - test_bit(bit, (unsigned long *)((c)->x86_capability)) - #define cpu_has(c, bit) test_bit(bit, (c)->x86_capability) /* diff --git a/com32/modules/cpuid.c b/com32/modules/cpuid.c index 18952d2..3105c96 100644 --- a/com32/modules/cpuid.c +++ b/com32/modules/cpuid.c @@ -168,7 +168,7 @@ void generic_identify(struct cpuinfo_x86 *c) if (c->x86 >= 0x6) c->x86_model += ((tfms >> 16) & 0xF) << 4; c->x86_mask = tfms & 15; - if (test_cpu_cap(c, X86_FEATURE_CLFLSH)) + if (cpu_has(c, X86_FEATURE_CLFLSH)) c->x86_clflush_size = ((ebx >> 8) & 0xff) * 8; } else { /* Have CPUID level 0 only - unheard of */ -- 2.7.4