diff options
Diffstat (limited to 'arch/x86/kernel/cpu/intel.c')
| -rw-r--r-- | arch/x86/kernel/cpu/intel.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index 9b0c441c03f5..ec7299566f79 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | #include <asm/apic.h> | 26 | #include <asm/apic.h> |
| 27 | #endif | 27 | #endif |
| 28 | 28 | ||
| 29 | static void __cpuinit early_init_intel(struct cpuinfo_x86 *c) | 29 | static void early_init_intel(struct cpuinfo_x86 *c) |
| 30 | { | 30 | { |
| 31 | u64 misc_enable; | 31 | u64 misc_enable; |
| 32 | 32 | ||
| @@ -163,7 +163,7 @@ static void __cpuinit early_init_intel(struct cpuinfo_x86 *c) | |||
| 163 | * This is called before we do cpu ident work | 163 | * This is called before we do cpu ident work |
| 164 | */ | 164 | */ |
| 165 | 165 | ||
| 166 | int __cpuinit ppro_with_ram_bug(void) | 166 | int ppro_with_ram_bug(void) |
| 167 | { | 167 | { |
| 168 | /* Uses data from early_cpu_detect now */ | 168 | /* Uses data from early_cpu_detect now */ |
| 169 | if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && | 169 | if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && |
| @@ -176,7 +176,7 @@ int __cpuinit ppro_with_ram_bug(void) | |||
| 176 | return 0; | 176 | return 0; |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | static void __cpuinit intel_smp_check(struct cpuinfo_x86 *c) | 179 | static void intel_smp_check(struct cpuinfo_x86 *c) |
| 180 | { | 180 | { |
| 181 | /* calling is from identify_secondary_cpu() ? */ | 181 | /* calling is from identify_secondary_cpu() ? */ |
| 182 | if (!c->cpu_index) | 182 | if (!c->cpu_index) |
| @@ -196,7 +196,7 @@ static void __cpuinit intel_smp_check(struct cpuinfo_x86 *c) | |||
| 196 | } | 196 | } |
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | static void __cpuinit intel_workarounds(struct cpuinfo_x86 *c) | 199 | static void intel_workarounds(struct cpuinfo_x86 *c) |
| 200 | { | 200 | { |
| 201 | unsigned long lo, hi; | 201 | unsigned long lo, hi; |
| 202 | 202 | ||
| @@ -275,12 +275,12 @@ static void __cpuinit intel_workarounds(struct cpuinfo_x86 *c) | |||
| 275 | intel_smp_check(c); | 275 | intel_smp_check(c); |
| 276 | } | 276 | } |
| 277 | #else | 277 | #else |
| 278 | static void __cpuinit intel_workarounds(struct cpuinfo_x86 *c) | 278 | static void intel_workarounds(struct cpuinfo_x86 *c) |
| 279 | { | 279 | { |
| 280 | } | 280 | } |
| 281 | #endif | 281 | #endif |
| 282 | 282 | ||
| 283 | static void __cpuinit srat_detect_node(struct cpuinfo_x86 *c) | 283 | static void srat_detect_node(struct cpuinfo_x86 *c) |
| 284 | { | 284 | { |
| 285 | #ifdef CONFIG_NUMA | 285 | #ifdef CONFIG_NUMA |
| 286 | unsigned node; | 286 | unsigned node; |
| @@ -300,7 +300,7 @@ static void __cpuinit srat_detect_node(struct cpuinfo_x86 *c) | |||
| 300 | /* | 300 | /* |
| 301 | * find out the number of processor cores on the die | 301 | * find out the number of processor cores on the die |
| 302 | */ | 302 | */ |
| 303 | static int __cpuinit intel_num_cpu_cores(struct cpuinfo_x86 *c) | 303 | static int intel_num_cpu_cores(struct cpuinfo_x86 *c) |
| 304 | { | 304 | { |
| 305 | unsigned int eax, ebx, ecx, edx; | 305 | unsigned int eax, ebx, ecx, edx; |
| 306 | 306 | ||
| @@ -315,7 +315,7 @@ static int __cpuinit intel_num_cpu_cores(struct cpuinfo_x86 *c) | |||
| 315 | return 1; | 315 | return 1; |
| 316 | } | 316 | } |
| 317 | 317 | ||
| 318 | static void __cpuinit detect_vmx_virtcap(struct cpuinfo_x86 *c) | 318 | static void detect_vmx_virtcap(struct cpuinfo_x86 *c) |
| 319 | { | 319 | { |
| 320 | /* Intel VMX MSR indicated features */ | 320 | /* Intel VMX MSR indicated features */ |
| 321 | #define X86_VMX_FEATURE_PROC_CTLS_TPR_SHADOW 0x00200000 | 321 | #define X86_VMX_FEATURE_PROC_CTLS_TPR_SHADOW 0x00200000 |
| @@ -353,7 +353,7 @@ static void __cpuinit detect_vmx_virtcap(struct cpuinfo_x86 *c) | |||
| 353 | } | 353 | } |
| 354 | } | 354 | } |
| 355 | 355 | ||
| 356 | static void __cpuinit init_intel(struct cpuinfo_x86 *c) | 356 | static void init_intel(struct cpuinfo_x86 *c) |
| 357 | { | 357 | { |
| 358 | unsigned int l2 = 0; | 358 | unsigned int l2 = 0; |
| 359 | 359 | ||
| @@ -472,7 +472,7 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c) | |||
| 472 | } | 472 | } |
| 473 | 473 | ||
| 474 | #ifdef CONFIG_X86_32 | 474 | #ifdef CONFIG_X86_32 |
| 475 | static unsigned int __cpuinit intel_size_cache(struct cpuinfo_x86 *c, unsigned int size) | 475 | static unsigned int intel_size_cache(struct cpuinfo_x86 *c, unsigned int size) |
| 476 | { | 476 | { |
| 477 | /* | 477 | /* |
| 478 | * Intel PIII Tualatin. This comes in two flavours. | 478 | * Intel PIII Tualatin. This comes in two flavours. |
| @@ -506,7 +506,7 @@ static unsigned int __cpuinit intel_size_cache(struct cpuinfo_x86 *c, unsigned i | |||
| 506 | 506 | ||
| 507 | #define STLB_4K 0x41 | 507 | #define STLB_4K 0x41 |
| 508 | 508 | ||
| 509 | static const struct _tlb_table intel_tlb_table[] __cpuinitconst = { | 509 | static const struct _tlb_table intel_tlb_table[] = { |
| 510 | { 0x01, TLB_INST_4K, 32, " TLB_INST 4 KByte pages, 4-way set associative" }, | 510 | { 0x01, TLB_INST_4K, 32, " TLB_INST 4 KByte pages, 4-way set associative" }, |
| 511 | { 0x02, TLB_INST_4M, 2, " TLB_INST 4 MByte pages, full associative" }, | 511 | { 0x02, TLB_INST_4M, 2, " TLB_INST 4 MByte pages, full associative" }, |
| 512 | { 0x03, TLB_DATA_4K, 64, " TLB_DATA 4 KByte pages, 4-way set associative" }, | 512 | { 0x03, TLB_DATA_4K, 64, " TLB_DATA 4 KByte pages, 4-way set associative" }, |
| @@ -536,7 +536,7 @@ static const struct _tlb_table intel_tlb_table[] __cpuinitconst = { | |||
| 536 | { 0x00, 0, 0 } | 536 | { 0x00, 0, 0 } |
| 537 | }; | 537 | }; |
| 538 | 538 | ||
| 539 | static void __cpuinit intel_tlb_lookup(const unsigned char desc) | 539 | static void intel_tlb_lookup(const unsigned char desc) |
| 540 | { | 540 | { |
| 541 | unsigned char k; | 541 | unsigned char k; |
| 542 | if (desc == 0) | 542 | if (desc == 0) |
| @@ -605,7 +605,7 @@ static void __cpuinit intel_tlb_lookup(const unsigned char desc) | |||
| 605 | } | 605 | } |
| 606 | } | 606 | } |
| 607 | 607 | ||
| 608 | static void __cpuinit intel_tlb_flushall_shift_set(struct cpuinfo_x86 *c) | 608 | static void intel_tlb_flushall_shift_set(struct cpuinfo_x86 *c) |
| 609 | { | 609 | { |
| 610 | switch ((c->x86 << 8) + c->x86_model) { | 610 | switch ((c->x86 << 8) + c->x86_model) { |
| 611 | case 0x60f: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */ | 611 | case 0x60f: /* original 65 nm celeron/pentium/core2/xeon, "Merom"/"Conroe" */ |
| @@ -634,7 +634,7 @@ static void __cpuinit intel_tlb_flushall_shift_set(struct cpuinfo_x86 *c) | |||
| 634 | } | 634 | } |
| 635 | } | 635 | } |
| 636 | 636 | ||
| 637 | static void __cpuinit intel_detect_tlb(struct cpuinfo_x86 *c) | 637 | static void intel_detect_tlb(struct cpuinfo_x86 *c) |
| 638 | { | 638 | { |
| 639 | int i, j, n; | 639 | int i, j, n; |
| 640 | unsigned int regs[4]; | 640 | unsigned int regs[4]; |
| @@ -661,7 +661,7 @@ static void __cpuinit intel_detect_tlb(struct cpuinfo_x86 *c) | |||
| 661 | intel_tlb_flushall_shift_set(c); | 661 | intel_tlb_flushall_shift_set(c); |
| 662 | } | 662 | } |
| 663 | 663 | ||
| 664 | static const struct cpu_dev __cpuinitconst intel_cpu_dev = { | 664 | static const struct cpu_dev intel_cpu_dev = { |
| 665 | .c_vendor = "Intel", | 665 | .c_vendor = "Intel", |
| 666 | .c_ident = { "GenuineIntel" }, | 666 | .c_ident = { "GenuineIntel" }, |
| 667 | #ifdef CONFIG_X86_32 | 667 | #ifdef CONFIG_X86_32 |
