Skip to content

Commit

Permalink
numa: remove stale node_has_online_mem() define
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Chris Metcalf committed Jan 18, 2016
1 parent 1bb50ca commit 00d27c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions arch/tile/include/asm/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ static inline const struct cpumask *cpumask_of_node(int node)
/* For now, use numa node -1 for global allocation. */
#define pcibus_to_node(bus) ((void)(bus), -1)

/* By definition, we create nodes based on online memory. */
#define node_has_online_mem(nid) 1

#endif /* CONFIG_NUMA */

#include <asm-generic/topology.h>
Expand Down
4 changes: 0 additions & 4 deletions include/linux/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
#include <linux/percpu.h>
#include <asm/topology.h>

#ifndef node_has_online_mem
#define node_has_online_mem(nid) (1)
#endif

#ifndef nr_cpus_node
#define nr_cpus_node(node) cpumask_weight(cpumask_of_node(node))
#endif
Expand Down

0 comments on commit 00d27c6

Please sign in to comment.