aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/cpu/amd.c5
-rw-r--r--arch/x86/kernel/cpu/intel.c10
2 files changed, 4 insertions, 11 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 59bfebc8c805..96abccaada33 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -768,10 +768,7 @@ static unsigned int amd_size_cache(struct cpuinfo_x86 *c, unsigned int size)
768 768
769static void cpu_set_tlb_flushall_shift(struct cpuinfo_x86 *c) 769static void cpu_set_tlb_flushall_shift(struct cpuinfo_x86 *c)
770{ 770{
771 tlb_flushall_shift = 5; 771 tlb_flushall_shift = 6;
772
773 if (c->x86 <= 0x11)
774 tlb_flushall_shift = 4;
775} 772}
776 773
777static void cpu_detect_tlb_amd(struct cpuinfo_x86 *c) 774static void cpu_detect_tlb_amd(struct cpuinfo_x86 *c)
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
index bbe1b8b1f1c4..d358a3928b8f 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -615,21 +615,17 @@ static void intel_tlb_flushall_shift_set(struct cpuinfo_x86 *c)
615 case 0x61d: /* six-core 45 nm xeon "Dunnington" */ 615 case 0x61d: /* six-core 45 nm xeon "Dunnington" */
616 tlb_flushall_shift = -1; 616 tlb_flushall_shift = -1;
617 break; 617 break;
618 case 0x63a: /* Ivybridge */
619 tlb_flushall_shift = 2;
620 break;
618 case 0x61a: /* 45 nm nehalem, "Bloomfield" */ 621 case 0x61a: /* 45 nm nehalem, "Bloomfield" */
619 case 0x61e: /* 45 nm nehalem, "Lynnfield" */ 622 case 0x61e: /* 45 nm nehalem, "Lynnfield" */
620 case 0x625: /* 32 nm nehalem, "Clarkdale" */ 623 case 0x625: /* 32 nm nehalem, "Clarkdale" */
621 case 0x62c: /* 32 nm nehalem, "Gulftown" */ 624 case 0x62c: /* 32 nm nehalem, "Gulftown" */
622 case 0x62e: /* 45 nm nehalem-ex, "Beckton" */ 625 case 0x62e: /* 45 nm nehalem-ex, "Beckton" */
623 case 0x62f: /* 32 nm Xeon E7 */ 626 case 0x62f: /* 32 nm Xeon E7 */
624 tlb_flushall_shift = 6;
625 break;
626 case 0x62a: /* SandyBridge */ 627 case 0x62a: /* SandyBridge */
627 case 0x62d: /* SandyBridge, "Romely-EP" */ 628 case 0x62d: /* SandyBridge, "Romely-EP" */
628 tlb_flushall_shift = 5;
629 break;
630 case 0x63a: /* Ivybridge */
631 tlb_flushall_shift = 2;
632 break;
633 default: 629 default:
634 tlb_flushall_shift = 6; 630 tlb_flushall_shift = 6;
635 } 631 }