Skip to content

Commit 00d27c6

Browse files
author
Chris Metcalf
committed
numa: remove stale node_has_online_mem() define
This isn't used anywhere, so delete it. Looks like the last usage (in x86-specific code) was removed by Tejun in 2011 in commit bd6709a ("x86, NUMA: Make 32bit use common NUMA init path"). Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
1 parent 1bb50ca commit 00d27c6

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

arch/tile/include/asm/topology.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ static inline const struct cpumask *cpumask_of_node(int node)
4444
/* For now, use numa node -1 for global allocation. */
4545
#define pcibus_to_node(bus) ((void)(bus), -1)
4646

47-
/* By definition, we create nodes based on online memory. */
48-
#define node_has_online_mem(nid) 1
49-
5047
#endif /* CONFIG_NUMA */
5148

5249
#include <asm-generic/topology.h>

include/linux/topology.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
#include <linux/percpu.h>
3535
#include <asm/topology.h>
3636

37-
#ifndef node_has_online_mem
38-
#define node_has_online_mem(nid) (1)
39-
#endif
40-
4137
#ifndef nr_cpus_node
4238
#define nr_cpus_node(node) cpumask_weight(cpumask_of_node(node))
4339
#endif

0 commit comments

Comments
 (0)