diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-02-26 02:52:27 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:51 -0400 |
commit | 1d007cd5aeea2c9283e01433dbce4c9f91dd7823 (patch) | |
tree | a536df1fb3533d1b3dd1365505db76031d2176a3 /arch/x86/kernel/cpu | |
parent | 4cbe668add030a35e0592a9bb292e0f2a1bcea88 (diff) |
x86: clean up cpu capabilities accesses, cyrix.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r-- | arch/x86/kernel/cpu/cyrix.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kernel/cpu/cyrix.c b/arch/x86/kernel/cpu/cyrix.c index f7085bde4c28..3fd7a67bb06a 100644 --- a/arch/x86/kernel/cpu/cyrix.c +++ b/arch/x86/kernel/cpu/cyrix.c | |||
@@ -190,12 +190,12 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c) | |||
190 | * Bit 31 in normal CPUID used for nonstandard 3DNow ID; | 190 | * Bit 31 in normal CPUID used for nonstandard 3DNow ID; |
191 | * 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway | 191 | * 3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway |
192 | */ | 192 | */ |
193 | clear_bit(0*32+31, c->x86_capability); | 193 | clear_cpu_cap(c, 0*32+31); |
194 | 194 | ||
195 | /* Cyrix used bit 24 in extended (AMD) CPUID for Cyrix MMX extensions */ | 195 | /* Cyrix used bit 24 in extended (AMD) CPUID for Cyrix MMX extensions */ |
196 | if (test_bit(1*32+24, c->x86_capability)) { | 196 | if (test_cpu_cap(c, 1*32+24)) { |
197 | clear_bit(1*32+24, c->x86_capability); | 197 | clear_cpu_cap(c, 1*32+24); |
198 | set_bit(X86_FEATURE_CXMMX, c->x86_capability); | 198 | set_cpu_cap(c, X86_FEATURE_CXMMX); |
199 | } | 199 | } |
200 | 200 | ||
201 | do_cyrix_devid(&dir0, &dir1); | 201 | do_cyrix_devid(&dir0, &dir1); |
@@ -242,7 +242,7 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c) | |||
242 | } else /* 686 */ | 242 | } else /* 686 */ |
243 | p = Cx86_cb+1; | 243 | p = Cx86_cb+1; |
244 | /* Emulate MTRRs using Cyrix's ARRs. */ | 244 | /* Emulate MTRRs using Cyrix's ARRs. */ |
245 | set_bit(X86_FEATURE_CYRIX_ARR, c->x86_capability); | 245 | set_cpu_cap(c, X86_FEATURE_CYRIX_ARR); |
246 | /* 6x86's contain this bug */ | 246 | /* 6x86's contain this bug */ |
247 | c->coma_bug = 1; | 247 | c->coma_bug = 1; |
248 | break; | 248 | break; |
@@ -319,7 +319,7 @@ static void __cpuinit init_cyrix(struct cpuinfo_x86 *c) | |||
319 | if (((dir1 & 0x0f) > 4) || ((dir1 & 0xf0) == 0x20)) | 319 | if (((dir1 & 0x0f) > 4) || ((dir1 & 0xf0) == 0x20)) |
320 | (c->x86_model)++; | 320 | (c->x86_model)++; |
321 | /* Emulate MTRRs using Cyrix's ARRs. */ | 321 | /* Emulate MTRRs using Cyrix's ARRs. */ |
322 | set_bit(X86_FEATURE_CYRIX_ARR, c->x86_capability); | 322 | set_cpu_cap(c, X86_FEATURE_CYRIX_ARR); |
323 | break; | 323 | break; |
324 | 324 | ||
325 | case 0xf: /* Cyrix 486 without DEVID registers */ | 325 | case 0xf: /* Cyrix 486 without DEVID registers */ |