x86, mm: Merge alloc_low_page between 64bit and 32bit

They are almost same except 64 bit need to handle after_bootmem case.

Add mm_internal.h to make that alloc_low_page() only to be accessible
from arch/x86/mm/init*.c

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1353123563-3103-25-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
Yinghai Lu
2012-11-16 19:39:01 -08:00
committed by H. Peter Anvin
parent 868bf4d6b9
commit 5c51bdbe4c
4 changed files with 44 additions and 54 deletions

View File

@@ -0,0 +1,6 @@
#ifndef __X86_MM_INTERNAL_H
#define __X86_MM_INTERNAL_H
void *alloc_low_page(void);
#endif /* __X86_MM_INTERNAL_H */