diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2012-11-28 14:50:27 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-11-29 16:23:02 -0500 |
commit | 094ab1db7cb7833cd4c820acd868fc26acf3f08e (patch) | |
tree | 8f68b528df0673c9a2d98a72d7bca18ca8c5045c /arch/x86/mm | |
parent | e5bb8ad862a97a0facc83f3b81731de919fec6ad (diff) |
x86, 386 removal: Remove CONFIG_INVLPG
All 486+ CPUs support INVLPG, so remove the fallback 386 support
code.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1354132230-21854-6-git-send-email-hpa@linux.intel.com
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/tlb.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 60f926cd8b0e..13a6b29e2e5d 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c | |||
@@ -104,7 +104,7 @@ static void flush_tlb_func(void *info) | |||
104 | return; | 104 | return; |
105 | 105 | ||
106 | if (this_cpu_read(cpu_tlbstate.state) == TLBSTATE_OK) { | 106 | if (this_cpu_read(cpu_tlbstate.state) == TLBSTATE_OK) { |
107 | if (f->flush_end == TLB_FLUSH_ALL || !cpu_has_invlpg) | 107 | if (f->flush_end == TLB_FLUSH_ALL) |
108 | local_flush_tlb(); | 108 | local_flush_tlb(); |
109 | else if (!f->flush_end) | 109 | else if (!f->flush_end) |
110 | __flush_tlb_single(f->flush_start); | 110 | __flush_tlb_single(f->flush_start); |
@@ -337,10 +337,8 @@ static const struct file_operations fops_tlbflush = { | |||
337 | 337 | ||
338 | static int __cpuinit create_tlb_flushall_shift(void) | 338 | static int __cpuinit create_tlb_flushall_shift(void) |
339 | { | 339 | { |
340 | if (cpu_has_invlpg) { | 340 | debugfs_create_file("tlb_flushall_shift", S_IRUSR | S_IWUSR, |
341 | debugfs_create_file("tlb_flushall_shift", S_IRUSR | S_IWUSR, | 341 | arch_debugfs_dir, NULL, &fops_tlbflush); |
342 | arch_debugfs_dir, NULL, &fops_tlbflush); | ||
343 | } | ||
344 | return 0; | 342 | return 0; |
345 | } | 343 | } |
346 | late_initcall(create_tlb_flushall_shift); | 344 | late_initcall(create_tlb_flushall_shift); |