hdt: Removing useless define
authorErwan Velu <erwan.velu@free.fr>
Tue, 10 Feb 2009 17:52:07 +0000 (18:52 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 26 Feb 2009 04:58:39 +0000 (20:58 -0800)
com32/include/cpuid.h
com32/modules/cpuid.c

index c24c798..f8e5644 100644 (file)
@@ -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)
 
 /*
index 18952d2..3105c96 100644 (file)
@@ -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 */