diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-01-14 16:16:50 -0500 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-07-02 05:01:28 -0400 |
commit | ebe74597a55fef00edc80a414ef5c6477d035e0a (patch) | |
tree | 1fb3ba2c3bdeea931ae47d380692b18f537ebe09 /arch/avr32/mm/init.c | |
parent | b13d618b44fefea7529bd467e55423d353a599fc (diff) |
avr32: Remove useless zeroing of swapper_pg_dir at startup
swapper_pg_dir is stored in .bss, so it must already be zeroed out
when we get there.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/mm/init.c')
-rw-r--r-- | arch/avr32/mm/init.c | 16 |
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); |