diff options
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 19860d317ec2..746b57e3d370 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -528,6 +528,12 @@ void sparse_init(void); | |||
528 | #define sparse_init() do {} while (0) | 528 | #define sparse_init() do {} while (0) |
529 | #endif /* CONFIG_SPARSEMEM */ | 529 | #endif /* CONFIG_SPARSEMEM */ |
530 | 530 | ||
531 | #ifdef CONFIG_NODES_SPAN_OTHER_NODES | ||
532 | #define early_pfn_in_nid(pfn, nid) (early_pfn_to_nid(pfn) == (nid)) | ||
533 | #else | ||
534 | #define early_pfn_in_nid(pfn, nid) (1) | ||
535 | #endif | ||
536 | |||
531 | #ifndef early_pfn_valid | 537 | #ifndef early_pfn_valid |
532 | #define early_pfn_valid(pfn) (1) | 538 | #define early_pfn_valid(pfn) (1) |
533 | #endif | 539 | #endif |