File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ config RMW_INSNS
373
373
config SINGLE_MEMORY_CHUNK
374
374
bool "Use one physical chunk of memory only" if ADVANCED && !SUN3
375
375
depends on MMU
376
- default y if SUN3
376
+ default y if SUN3 || MMU_COLDFIRE
377
377
select NEED_MULTIPLE_NODES
378
378
help
379
379
Ignore all but the first contiguous chunk of physical memory for VM
@@ -406,7 +406,7 @@ config M68K_L2_CACHE
406
406
config NODES_SHIFT
407
407
int
408
408
default "3"
409
- depends on !SINGLE_MEMORY_CHUNK
409
+ depends on DISCONTIGMEM
410
410
411
411
config CPU_HAS_NO_BITFIELDS
412
412
bool
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ static inline void *__va(unsigned long x)
126
126
127
127
extern int m68k_virt_to_node_shift ;
128
128
129
- #ifdef CONFIG_SINGLE_MEMORY_CHUNK
129
+ #ifndef CONFIG_DISCONTIGMEM
130
130
#define __virt_to_node (addr ) (&pg_data_map[0])
131
131
#else
132
132
extern struct pglist_data * pg_data_table [];
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ static inline void *phys_to_virt(unsigned long address)
29
29
}
30
30
31
31
/* Permanent address of a page. */
32
- #if defined(CONFIG_MMU ) && defined(CONFIG_SINGLE_MEMORY_CHUNK )
32
+ #if defined(CONFIG_MMU ) && ! defined(CONFIG_DISCONTIGMEM )
33
33
#define page_to_phys (page ) \
34
34
__pa(PAGE_OFFSET + (((page) - pg_data_map[0].node_mem_map) << PAGE_SHIFT))
35
35
#else
Original file line number Diff line number Diff line change @@ -47,14 +47,14 @@ EXPORT_SYMBOL(pg_data_map);
47
47
48
48
int m68k_virt_to_node_shift ;
49
49
50
- #ifndef CONFIG_SINGLE_MEMORY_CHUNK
50
+ #ifdef CONFIG_DISCONTIGMEM
51
51
pg_data_t * pg_data_table [65 ];
52
52
EXPORT_SYMBOL (pg_data_table );
53
53
#endif
54
54
55
55
void __init m68k_setup_node (int node )
56
56
{
57
- #ifndef CONFIG_SINGLE_MEMORY_CHUNK
57
+ #ifdef CONFIG_DISCONTIGMEM
58
58
struct m68k_mem_info * info = m68k_memory + node ;
59
59
int i , end ;
60
60
You can’t perform that action at this time.
0 commit comments