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/cpufreq/pmac32-cpufreq.c | |
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/cpufreq/pmac32-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/pmac32-cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c index 1f49d97a70ea..bde503c66945 100644 --- a/drivers/cpufreq/pmac32-cpufreq.c +++ b/drivers/cpufreq/pmac32-cpufreq.c | |||
@@ -298,7 +298,7 @@ static int pmu_set_cpu_speed(int low_speed) | |||
298 | _set_L3CR(save_l3cr); | 298 | _set_L3CR(save_l3cr); |
299 | 299 | ||
300 | /* Restore userland MMU context */ | 300 | /* Restore userland MMU context */ |
301 | switch_mmu_context(NULL, current->active_mm); | 301 | switch_mmu_context(NULL, current->active_mm, NULL); |
302 | 302 | ||
303 | #ifdef DEBUG_FREQ | 303 | #ifdef DEBUG_FREQ |
304 | printk(KERN_DEBUG "HID1, after: %x\n", mfspr(SPRN_HID1)); | 304 | printk(KERN_DEBUG "HID1, after: %x\n", mfspr(SPRN_HID1)); |