Skip to content

Commit

Permalink
x86, tlb: Clean up and correct used type
Browse files Browse the repository at this point in the history
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: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <20100721124705.GA674@aftab>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Borislav Petkov authored and Ingo Molnar committed Jul 21, 2010
1 parent 468c30f commit 3f8afb7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/x86/mm/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,9 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long va)

static void do_flush_tlb_all(void *info)
{
unsigned long cpu = smp_processor_id();

__flush_tlb_all();
if (percpu_read(cpu_tlbstate.state) == TLBSTATE_LAZY)
leave_mm(cpu);
leave_mm(smp_processor_id());
}

void flush_tlb_all(void)
Expand Down

0 comments on commit 3f8afb7

Please sign in to comment.