[tip:x86/mm] x86, tlb: Clean up and correct used type

From: tip-bot for Borislav Petkov
Date: Wed Jul 21 2010 - 16:53:38 EST


Commit-ID: 3f8afb77cd8a672f024e4a16763ef177bc16c8f8
Gitweb: http://git.kernel.org/tip/3f8afb77cd8a672f024e4a16763ef177bc16c8f8
Author: Borislav Petkov <borislav.petkov@xxxxxxx>
AuthorDate: Wed, 21 Jul 2010 14:47:05 +0200
Committer: Ingo Molnar <mingo@xxxxxxx>
CommitDate: Wed, 21 Jul 2010 21:48:15 +0200

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: Borislav Petkov <borislav.petkov@xxxxxxx>
LKML-Reference: <20100721124705.GA674@aftab>
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
arch/x86/mm/tlb.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c
index 426f3a1..c03f14a 100644
--- a/arch/x86/mm/tlb.c
+++ b/arch/x86/mm/tlb.c
@@ -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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/