aboutsummaryrefslogtreecommitdiffstats
path: root/arch/avr32/mm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/avr32/mm')
-rw-r--r--arch/avr32/mm/init.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/avr32/mm/init.c b/arch/avr32/mm/init.c
index 5ee1e407dcf7..0e77578c358d 100644
--- a/arch/avr32/mm/init.c
+++ b/arch/avr32/mm/init.c
@@ -108,19 +108,9 @@ void __init paging_init(void)
108 zero_page = alloc_bootmem_low_pages_node(NODE_DATA(0), 108 zero_page = alloc_bootmem_low_pages_node(NODE_DATA(0),
109 PAGE_SIZE); 109 PAGE_SIZE);
110 110
111 { 111 sysreg_write(PTBR, (unsigned long)swapper_pg_dir);
112 pgd_t *pg_dir; 112 enable_mmu();
113 int i; 113 printk ("CPU: Paging enabled\n");
114
115 pg_dir = swapper_pg_dir;
116 sysreg_write(PTBR, (unsigned long)pg_dir);
117
118 for (i = 0; i < PTRS_PER_PGD; i++)
119 pgd_val(pg_dir[i]) = 0;
120
121 enable_mmu();
122 printk ("CPU: Paging enabled\n");
123 }
124 114
125 for_each_online_node(nid) { 115 for_each_online_node(nid) {
126 pg_data_t *pgdat = NODE_DATA(nid); 116 pg_data_t *pgdat = NODE_DATA(nid);