]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a43c635ad10abd2663fbddc4dc43eacb4658697
tree2efd7b3e75538b5550e273116adbba546fb859f4
parent14cdba4551f54377eaf5b30e2d9ecba52f25599a
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