diff options
| -rw-r--r-- | arch/x86/mm/tlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index ae584d09e8b0..add5a0fc3c5f 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c | |||
| @@ -102,13 +102,13 @@ static void flush_tlb_func(void *info) | |||
| 102 | 102 | ||
| 103 | if (f->flush_mm != this_cpu_read(cpu_tlbstate.active_mm)) | 103 | if (f->flush_mm != this_cpu_read(cpu_tlbstate.active_mm)) |
| 104 | return; | 104 | return; |
| 105 | if (!f->flush_end) | ||
| 106 | f->flush_end = f->flush_start + PAGE_SIZE; | ||
| 105 | 107 | ||
| 106 | count_vm_tlb_event(NR_TLB_REMOTE_FLUSH_RECEIVED); | 108 | count_vm_tlb_event(NR_TLB_REMOTE_FLUSH_RECEIVED); |
| 107 | if (this_cpu_read(cpu_tlbstate.state) == TLBSTATE_OK) { | 109 | if (this_cpu_read(cpu_tlbstate.state) == TLBSTATE_OK) { |
| 108 | if (f->flush_end == TLB_FLUSH_ALL) | 110 | if (f->flush_end == TLB_FLUSH_ALL) |
| 109 | local_flush_tlb(); | 111 | local_flush_tlb(); |
| 110 | else if (!f->flush_end) | ||
| 111 | __flush_tlb_single(f->flush_start); | ||
| 112 | else { | 112 | else { |
| 113 | unsigned long addr; | 113 | unsigned long addr; |
| 114 | addr = f->flush_start; | 114 | addr = f->flush_start; |
