powerpc/mm: Add HW threads support to no_hash TLB management
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 23 Jul 2009 23:15:10 +0000 (23:15 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Aug 2009 00:12:37 +0000 (10:12 +1000)
commitfcce810986b3f32a8322faf240f8cc5560a4c463
tree4ee99143e18a008c52a274d74c1cc11055983bc6
parent6c1719942e19936044c4673b18afa26e45a02320
powerpc/mm: Add HW threads support to no_hash TLB management

The current "no hash" MMU context management code is written with
the assumption that one CPU == one TLB. This is not the case on
implementations that support HW multithreading, where several
linux CPUs can share the same TLB.

This adds some basic support for this to our context management
and our TLB flushing code.

It also cleans up the optional debugging output a bit

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/cputhreads.h
arch/powerpc/mm/mmu_context_nohash.c
arch/powerpc/mm/tlb_nohash.c