Commit 73826d6
MIPS: Loongson64: Clean up numa.c
(1) Replace nid_to_addroffset() with nid_to_addrbase() and then remove the
related useless code.
(2) Since end_pfn = start_pfn + node_psize, use "node_psize" instead of
"end_pfn - start_pfn" to avoid the redundant calculation.
(3) After commit 6fbde6b ("MIPS: Loongson64: Move files to the
top-level directory"), CONFIG_ZONE_DMA32 is always set for Loongson64
due to MACH_LOONGSON64 selects ZONE_DMA32, so no need to use ifdef any
more, just remove it.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>1 parent 1062fc4 commit 73826d6
2 files changed
Lines changed: 4 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 14 | | |
19 | 15 | | |
20 | | - | |
| 16 | + | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 101 | | |
123 | 102 | | |
124 | 103 | | |
| |||
146 | 125 | | |
147 | 126 | | |
148 | 127 | | |
149 | | - | |
| 128 | + | |
150 | 129 | | |
151 | 130 | | |
152 | 131 | | |
| |||
158 | 137 | | |
159 | 138 | | |
160 | 139 | | |
161 | | - | |
| 140 | + | |
162 | 141 | | |
163 | 142 | | |
164 | 143 | | |
| |||
175 | 154 | | |
176 | 155 | | |
177 | 156 | | |
178 | | - | |
| 157 | + | |
179 | 158 | | |
180 | 159 | | |
181 | 160 | | |
| |||
242 | 221 | | |
243 | 222 | | |
244 | 223 | | |
245 | | - | |
246 | 224 | | |
247 | | - | |
248 | 225 | | |
249 | 226 | | |
250 | 227 | | |
| |||
0 commit comments