File tree Expand file tree Collapse file tree 7 files changed +6
-27
lines changed Expand file tree Collapse file tree 7 files changed +6
-27
lines changed Original file line number Diff line number Diff line change 3
3
* License. See the file "COPYING" in the main directory of this archive
4
4
* for more details.
5
5
*
6
- * This file contains NUMA specific variables and functions which can
7
- * be split away from DISCONTIGMEM and are used on NUMA machines with
8
- * contiguous memory.
6
+ * This file contains NUMA specific variables and functions which are used on
7
+ * NUMA machines with contiguous memory.
9
8
* 2002/08/07 Erich Focht <[email protected] >
10
9
* Populate cpu entries in sysfs for non-numa systems as well
11
10
* Intel Corporation - Ashok Raj
Original file line number Diff line number Diff line change 3
3
* License. See the file "COPYING" in the main directory of this archive
4
4
* for more details.
5
5
*
6
- * This file contains NUMA specific variables and functions which can
7
- * be split away from DISCONTIGMEM and are used on NUMA machines with
8
- * contiguous memory.
6
+ * This file contains NUMA specific variables and functions which are used on
7
+ * NUMA machines with contiguous memory.
9
8
*
10
9
* 2002/08/07 Erich Focht <[email protected] >
11
10
*/
Original file line number Diff line number Diff line change 20
20
#define nid_to_addrbase (nid ) 0
21
21
#endif
22
22
23
- #ifdef CONFIG_DISCONTIGMEM
24
-
25
- #define pfn_to_nid (pfn ) pa_to_nid((pfn) << PAGE_SHIFT)
26
-
27
- #endif /* CONFIG_DISCONTIGMEM */
28
-
29
23
#endif /* _ASM_MMZONE_H_ */
Original file line number Diff line number Diff line change @@ -454,9 +454,6 @@ void __init mem_init(void)
454
454
BUILD_BUG_ON (IS_ENABLED (CONFIG_32BIT ) && (_PFN_SHIFT > PAGE_SHIFT ));
455
455
456
456
#ifdef CONFIG_HIGHMEM
457
- #ifdef CONFIG_DISCONTIGMEM
458
- #error "CONFIG_HIGHMEM and CONFIG_DISCONTIGMEM dont work together yet"
459
- #endif
460
457
max_mapnr = highend_pfn ? highend_pfn : max_low_pfn ;
461
458
#else
462
459
max_mapnr = max_low_pfn ;
Original file line number Diff line number Diff line change 76
76
* virt_to_page(k) convert a _valid_ virtual address to struct page *
77
77
* virt_addr_valid(k) indicates whether a virtual address is valid
78
78
*/
79
- #ifndef CONFIG_DISCONTIGMEM
80
-
81
79
#define ARCH_PFN_OFFSET PHYS_PFN_OFFSET
82
80
#define pfn_valid (pfn ) ((pfn) >= PHYS_PFN_OFFSET && (pfn) < (PHYS_PFN_OFFSET + max_mapnr))
83
81
84
82
#define virt_to_page (kaddr ) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT))
85
83
#define virt_addr_valid (kaddr ) ((unsigned long)(kaddr) >= PAGE_OFFSET && (unsigned long)(kaddr) < (unsigned long)high_memory)
86
84
87
- #else /* CONFIG_DISCONTIGMEM */
88
- #error CONFIG_DISCONTIGMEM is not supported yet.
89
- #endif /* !CONFIG_DISCONTIGMEM */
90
-
91
85
#define page_to_phys (page ) (page_to_pfn(page) << PAGE_SHIFT)
92
86
93
87
#endif
Original file line number Diff line number Diff line change @@ -192,10 +192,6 @@ static inline unsigned long ___pa(unsigned long va)
192
192
#define pfn_valid (pfn ) \
193
193
((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
194
194
195
- #ifdef CONFIG_DISCONTIGMEM
196
- # error CONFIG_DISCONTIGMEM not supported
197
- #endif
198
-
199
195
#define virt_to_page (kaddr ) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
200
196
#define page_to_virt (page ) __va(page_to_pfn(page) << PAGE_SHIFT)
201
197
#define virt_addr_valid (kaddr ) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
Original file line number Diff line number Diff line change @@ -494,8 +494,8 @@ static inline int gfp_zonelist(gfp_t flags)
494
494
* There are two zonelists per node, one for all zones with memory and
495
495
* one containing just zones from the node the zonelist belongs to.
496
496
*
497
- * For the normal case of non-DISCONTIGMEM systems the NODE_DATA() gets
498
- * optimized to &contig_page_data at compile-time.
497
+ * For the case of non-NUMA systems the NODE_DATA() gets optimized to
498
+ * &contig_page_data at compile-time.
499
499
*/
500
500
static inline struct zonelist * node_zonelist (int nid , gfp_t flags )
501
501
{
You can’t perform that action at this time.
0 commit comments