diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2016-04-29 09:26:01 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-05-01 04:33:04 -0400 |
commit | d2adba3fd137b46903dad813e2a4777b96c85e0f (patch) | |
tree | 42f883e56fd897d308ec1e3620e5d4692425da8e /drivers/macintosh | |
parent | d9225ad923514252ec8d10dac67e5a7a2f0aa345 (diff) |
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>
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 01ee736fe0ef..f8b6d1403c16 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -1851,7 +1851,7 @@ static int powerbook_sleep_grackle(void) | |||
1851 | _set_L2CR(save_l2cr); | 1851 | _set_L2CR(save_l2cr); |
1852 | 1852 | ||
1853 | /* Restore userland MMU context */ | 1853 | /* Restore userland MMU context */ |
1854 | switch_mmu_context(NULL, current->active_mm); | 1854 | switch_mmu_context(NULL, current->active_mm, NULL); |
1855 | 1855 | ||
1856 | /* Power things up */ | 1856 | /* Power things up */ |
1857 | pmu_unlock(); | 1857 | pmu_unlock(); |
@@ -1940,7 +1940,7 @@ powerbook_sleep_Core99(void) | |||
1940 | _set_L3CR(save_l3cr); | 1940 | _set_L3CR(save_l3cr); |
1941 | 1941 | ||
1942 | /* Restore userland MMU context */ | 1942 | /* Restore userland MMU context */ |
1943 | switch_mmu_context(NULL, current->active_mm); | 1943 | switch_mmu_context(NULL, current->active_mm, NULL); |
1944 | 1944 | ||
1945 | /* Tell PMU we are ready */ | 1945 | /* Tell PMU we are ready */ |
1946 | pmu_unlock(); | 1946 | pmu_unlock(); |