aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-12-18 14:13:24 -0500
committerPaul Mackerras <paulus@samba.org>2008-12-20 22:21:15 -0500
commit5e696617c425eb97bd943d781f3941fb1e8f0e5b (patch)
tree82138fbda2e28fbe8d0e5821f218cb160230ce27 /drivers
parent6d2170be4561293a6aa821c773687bd3f18e8206 (diff)
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 <benh@kernel.crashing.org> Acked-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/macintosh/via-pmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c
index d524dc245a2..b40fb9b6c86 100644
--- a/drivers/macintosh/via-pmu.c
+++ b/drivers/macintosh/via-pmu.c
@@ -1814,7 +1814,7 @@ static int powerbook_sleep_grackle(void)
1814 _set_L2CR(save_l2cr); 1814 _set_L2CR(save_l2cr);
1815 1815
1816 /* Restore userland MMU context */ 1816 /* Restore userland MMU context */
1817 set_context(current->active_mm->context.id, current->active_mm->pgd); 1817 switch_mmu_context(NULL, current->active_mm);
1818 1818
1819 /* Power things up */ 1819 /* Power things up */
1820 pmu_unlock(); 1820 pmu_unlock();
@@ -1903,7 +1903,7 @@ powerbook_sleep_Core99(void)
1903 _set_L3CR(save_l3cr); 1903 _set_L3CR(save_l3cr);
1904 1904
1905 /* Restore userland MMU context */ 1905 /* Restore userland MMU context */
1906 set_context(current->active_mm->context.id, current->active_mm->pgd); 1906 switch_mmu_context(NULL, current->active_mm);
1907 1907
1908 /* Tell PMU we are ready */ 1908 /* Tell PMU we are ready */
1909 pmu_unlock(); 1909 pmu_unlock();