Commit 3f8afb77 authored by Borislav Petkov's avatar Borislav Petkov Committed by Ingo Molnar

x86, tlb: Clean up and correct used type

smp_processor_id() returns an int and not an unsigned long.
Also, since the function is small enough, there's no need for a
local variable caching its value.

No functionality change, just cleanup.
Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <20100721124705.GA674@aftab>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 468c30f2
...@@ -278,11 +278,9 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long va) ...@@ -278,11 +278,9 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long va)
static void do_flush_tlb_all(void *info) static void do_flush_tlb_all(void *info)
{ {
unsigned long cpu = smp_processor_id();
__flush_tlb_all(); __flush_tlb_all();
if (percpu_read(cpu_tlbstate.state) == TLBSTATE_LAZY) if (percpu_read(cpu_tlbstate.state) == TLBSTATE_LAZY)
leave_mm(cpu); leave_mm(smp_processor_id());
} }
void flush_tlb_all(void) void flush_tlb_all(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment