]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07d616e5bb833ed11a6628886a3a37221f70c59e
tree4ee99143e18a008c52a274d74c1cc11055983bc6
parent8971ba9098ebd2fad8d5577f0b0ffdae733e130a
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