powerpc/mm: any thread in one core can be the first to setup TLB1
authorchenhui zhao <chenhui.zhao@freescale.com>
Thu, 24 Dec 2015 00:39:57 +0000 (08:39 +0800)
committerScott Wood <oss@buserror.net>
Sat, 5 Mar 2016 05:44:02 +0000 (23:44 -0600)
commitebb9d30a6a74f4ced5b7d35446ebb6362a724393
tree2efd7b3e75538b5550e273116adbba546fb859f4
parentd64716caf7724dbacd6d79249b90973bf6a9852a
powerpc/mm: any thread in one core can be the first to setup TLB1

On e6500, in the case of cpu hotplug, either thread in one core
may be the first thread initilzing the TLB1. The subsequent threads
must not setup it again.

The code is derived from the comment of Scott Wood.

Signed-off-by: Chenhui Zhao <chenhui.zhao@freescale.com>
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/include/asm/cputhreads.h
arch/powerpc/mm/tlb_nohash.c