lkml.org 
[lkml]   [2003]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.4.22-pre3] i386 cpufeature.h cleanup + comment
The 2.4.22-pre3 changelog includes:
>Alan Cox <alan@lxorguk.ukuu.org.uk>:
...
> o add the extra cpu bit test flags

This added a second cpu_has() macro to cpufeature.h, which
the patch below cleans up.

Note that FEATURE_EST currently mustn't be used: it resides
in the fifth word ([4]) but only four words are allocated
(NCAPINTS). If you bump NCAPINTS, you must also adjust the
hard-coded struct offsets in arch/i386/kernel/head.S or
Very Bad Things happen.

/Mikael

--- linux-2.4.22-pre3/include/asm-i386/cpufeature.h.~1~ 2003-07-06 18:37:46.000000000 +0200
+++ linux-2.4.22-pre3/include/asm-i386/cpufeature.h 2003-07-06 19:21:50.000000000 +0200
@@ -67,9 +67,6 @@
/* Intel defined CPU features, CPUID level 0x00000001 (ecx), word 4 */
#define X86_FEATURE_EST (4*32+ 7) /* Enhanced SpeedStep */

-#define cpu_has(c, bit) test_bit(bit, (c)->x86_capability)
-
-
#define cpu_has(c, bit) test_bit(bit, (c)->x86_capability)
#define boot_cpu_has(bit) test_bit(bit, boot_cpu_data.x86_capability)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.087 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site