Skip to content

Commit

Permalink
mm/alpha: unify mem_init() for both UMA and NUMA architectures
Browse files Browse the repository at this point in the history
Now mem_init() for both Alpha UMA and Alpha NUMA are the same, so unify it
to reduce duplicated code.

Signed-off-by: Jiang Liu <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Cc: Matt Turner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jiangliu authored and torvalds committed Jul 3, 2013
1 parent e1280be commit 2fb1cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
7 changes: 2 additions & 5 deletions arch/alpha/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,17 +276,14 @@ srm_paging_stop (void)
}
#endif

#ifndef CONFIG_DISCONTIGMEM
void __init
mem_init(void)
{
max_mapnr = max_low_pfn;
free_all_bootmem();
set_max_mapnr(max_low_pfn);
high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);

free_all_bootmem();
mem_init_print_info(NULL);
}
#endif /* CONFIG_DISCONTIGMEM */

void
free_initmem(void)
Expand Down
10 changes: 0 additions & 10 deletions arch/alpha/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,3 @@ void __init paging_init(void)
/* Initialize the kernel's ZERO_PGE. */
memset((void *)ZERO_PGE, 0, PAGE_SIZE);
}

void __init mem_init(void)
{
high_memory = (void *) __va(max_low_pfn << PAGE_SHIFT);
free_all_bootmem();
mem_init_print_info(NULL);
#if 0
mem_stress();
#endif
}

0 comments on commit 2fb1cd5

Please sign in to comment.