mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
powerpc/mm: Split mmu_context handling
This splits the mmu_context handling between 32-bit hash based processors, 64-bit hash based processors and everybody else. This is preliminary work for adding SMP support for BookE processors. Signed-off-by: Benjamin Herrenschmidt <[email protected]> Acked-by: Kumar Gala <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
6d2170be45
commit
5e696617c4
13 changed files with 337 additions and 321 deletions
|
|
@ -1814,7 +1814,7 @@ static int powerbook_sleep_grackle(void)
|
|||
_set_L2CR(save_l2cr);
|
||||
|
||||
/* Restore userland MMU context */
|
||||
set_context(current->active_mm->context.id, current->active_mm->pgd);
|
||||
switch_mmu_context(NULL, current->active_mm);
|
||||
|
||||
/* Power things up */
|
||||
pmu_unlock();
|
||||
|
|
@ -1903,7 +1903,7 @@ powerbook_sleep_Core99(void)
|
|||
_set_L3CR(save_l3cr);
|
||||
|
||||
/* Restore userland MMU context */
|
||||
set_context(current->active_mm->context.id, current->active_mm->pgd);
|
||||
switch_mmu_context(NULL, current->active_mm);
|
||||
|
||||
/* Tell PMU we are ready */
|
||||
pmu_unlock();
|
||||
|
|
|
|||
Loading…
Reference in a new issue