aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/init.c')
-rw-r--r--arch/sh/mm/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index d1a979eab656..2c6dc3d8df2c 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -248,8 +248,13 @@ void __init mem_init(void)
248 * Setup wrappers for copy/clear_page(), these will get overridden 248 * Setup wrappers for copy/clear_page(), these will get overridden
249 * later in the boot process if a better method is available. 249 * later in the boot process if a better method is available.
250 */ 250 */
251#ifdef CONFIG_MMU
251 copy_page = copy_page_slow; 252 copy_page = copy_page_slow;
252 clear_page = clear_page_slow; 253 clear_page = clear_page_slow;
254#else
255 copy_page = copy_page_nommu;
256 clear_page = clear_page_nommu;
257#endif
253 258
254 /* this will put all low memory onto the freelists */ 259 /* this will put all low memory onto the freelists */
255 totalram_pages += free_all_bootmem_node(NODE_DATA(0)); 260 totalram_pages += free_all_bootmem_node(NODE_DATA(0));