mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
d9225ad923
commit
d2adba3fd1
5 changed files with 19 additions and 17 deletions
|
|
@ -298,7 +298,7 @@ static int pmu_set_cpu_speed(int low_speed)
|
|||
_set_L3CR(save_l3cr);
|
||||
|
||||
/* Restore userland MMU context */
|
||||
switch_mmu_context(NULL, current->active_mm);
|
||||
switch_mmu_context(NULL, current->active_mm, NULL);
|
||||
|
||||
#ifdef DEBUG_FREQ
|
||||
printk(KERN_DEBUG "HID1, after: %x\n", mfspr(SPRN_HID1));
|
||||
|
|
|
|||
Loading…
Reference in a new issue