powerpc/mm: Abstraction for switch_mmu_context()
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 29 Apr 2016 13:26:01 +0000 (23:26 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 1 May 2016 08:33:04 +0000 (18:33 +1000)
commitd2adba3fd137b46903dad813e2a4777b96c85e0f
tree42f883e56fd897d308ec1e3620e5d4692425da8e
parentd9225ad923514252ec8d10dac67e5a7a2f0aa345
powerpc/mm: Abstraction for switch_mmu_context()

How we switch MMU context differs between hash and radix. For hash we
need to switch the SLB details and for radix we need to switch the PID
SPR.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mmu_context.h
arch/powerpc/kernel/swsusp.c
arch/powerpc/mm/mmu_context_nohash.c
drivers/cpufreq/pmac32-cpufreq.c
drivers/macintosh/via-pmu.c