mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
x86: introduce max_pfn_mapped
64bit uses end_pfn_map and 32bit uses max_low_pfn. There are several files which have #ifdef'ed defines which map either to end_pfn_map or max_low_pfn. Replace this by a universal define and clean up all the other instances. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
3cbd09e482
commit
f87519e8f4
4 changed files with 11 additions and 18 deletions
|
|
@ -35,8 +35,6 @@ extern unsigned long asmlinkage efi_call_phys(void *, ...);
|
|||
|
||||
#define efi_ioremap(addr, size) ioremap(addr, size)
|
||||
|
||||
#define end_pfn_map max_low_pfn
|
||||
|
||||
#else /* !CONFIG_X86_32 */
|
||||
|
||||
#define MAX_EFI_IO_PAGES 100
|
||||
|
|
|
|||
|
|
@ -33,8 +33,10 @@
|
|||
|
||||
#ifdef CONFIG_X86_64
|
||||
#include <asm/page_64.h>
|
||||
#define max_pfn_mapped end_pfn_map
|
||||
#else
|
||||
#include <asm/page_32.h>
|
||||
#define max_pfn_mapped max_low_pfn
|
||||
#endif /* CONFIG_X86_64 */
|
||||
|
||||
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
|
||||
|
|
|
|||
Loading…
Reference in a new issue