mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] memory hotplug prep: kill local_mapnr
The following series implements memory hot-add for ppc64 and i386. There are x86_64 and ia64 implementations that will be submitted shortly as well, through the normal maintainers. This patch: local_mapnr is unused, except for in an alpha header. Keep the alpha one, kill the rest. Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1a44e14908
commit
2774812f41
4 changed files with 0 additions and 21 deletions
|
|
@ -88,12 +88,6 @@ static inline int pfn_to_nid(unsigned long pfn)
|
|||
__pgdat->node_start_pfn + __pgdat->node_spanned_pages; \
|
||||
})
|
||||
|
||||
#define local_mapnr(kvaddr) \
|
||||
({ \
|
||||
unsigned long __pfn = __pa(kvaddr) >> PAGE_SHIFT; \
|
||||
(__pfn - node_start_pfn(pfn_to_nid(__pfn))); \
|
||||
})
|
||||
|
||||
/* XXX: FIXME -- wli */
|
||||
#define kern_addr_valid(kaddr) (0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue