mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
[ARM] Remove PFN_TO_NID for !DISCONTIGMEM
Platform classes need not define PFN_TO_NID when DISCONTIGMEM is not selected. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
1619cca292
commit
fea2efe3bb
@ -64,10 +64,6 @@
|
||||
#define NODE_MAX_MEM_SHIFT 26
|
||||
#define NODE_MAX_MEM_SIZE (1 << NODE_MAX_MEM_SHIFT)
|
||||
|
||||
#else
|
||||
|
||||
#define PFN_TO_NID(addr) (0)
|
||||
|
||||
#endif /* CONFIG_DISCONTIGMEM */
|
||||
|
||||
#endif /* __ASM_ARCH_MEMORY_H */
|
||||
|
@ -36,6 +36,4 @@
|
||||
|
||||
#endif
|
||||
|
||||
#define PFN_TO_NID(addr) (0)
|
||||
|
||||
#endif
|
||||
|
@ -85,10 +85,6 @@
|
||||
(((unsigned long)(addr) & 0x01ffffff) >> PAGE_SHIFT)
|
||||
# endif
|
||||
|
||||
#else
|
||||
|
||||
# define PFN_TO_NID(addr) (0)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -86,6 +86,5 @@
|
||||
|
||||
#endif /* CONFIG_ARCH_OMAP1510 */
|
||||
|
||||
#define PHYS_TO_NID(addr) (0)
|
||||
#endif
|
||||
|
||||
|
@ -67,10 +67,6 @@
|
||||
#define LOCAL_MAP_NR(addr) \
|
||||
(((unsigned long)(addr) & 0x03ffffff) >> PAGE_SHIFT)
|
||||
|
||||
#else
|
||||
|
||||
#define PFN_TO_NID(addr) (0)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -99,10 +99,6 @@ __arch_adjust_zones(int node, unsigned long *size, unsigned long *holes)
|
||||
#define LOCAL_MAP_NR(addr) \
|
||||
(((unsigned long)(addr) & 0x07ffffff) >> PAGE_SHIFT)
|
||||
|
||||
#else
|
||||
|
||||
#define PFN_TO_NID(addr) (0)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user