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>
This commit is contained in:

committed by
Michael Ellerman

父節點
d9225ad923
當前提交
d2adba3fd1
@@ -1851,7 +1851,7 @@ static int powerbook_sleep_grackle(void)
|
||||
_set_L2CR(save_l2cr);
|
||||
|
||||
/* Restore userland MMU context */
|
||||
switch_mmu_context(NULL, current->active_mm);
|
||||
switch_mmu_context(NULL, current->active_mm, NULL);
|
||||
|
||||
/* Power things up */
|
||||
pmu_unlock();
|
||||
@@ -1940,7 +1940,7 @@ powerbook_sleep_Core99(void)
|
||||
_set_L3CR(save_l3cr);
|
||||
|
||||
/* Restore userland MMU context */
|
||||
switch_mmu_context(NULL, current->active_mm);
|
||||
switch_mmu_context(NULL, current->active_mm, NULL);
|
||||
|
||||
/* Tell PMU we are ready */
|
||||
pmu_unlock();
|
||||
|
Reference in New Issue
Block a user