Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186239
b: refs/heads/master
c: 72c3368
h: refs/heads/master
i:
  186237: 72ab242
  186235: 622985e
  186231: fe79d68
  186223: 6834054
  186207: efec01c
  186175: 237ac15
  186111: d2f318f
v: v3
  • Loading branch information
H Hartley Sweeten authored and Linus Torvalds committed Mar 6, 2010
1 parent 98b7984 commit a58d2b3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d554ed895dc8f293cc712c71f14b101ace82579a
refs/heads/master: 72c3368856c543ace033f6a5b9a3edf1f4043236
6 changes: 3 additions & 3 deletions trunk/arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ static int __cpuinit numa_setup_cpu(unsigned long lcpu)
nid = of_node_to_nid_single(cpu);

if (nid < 0 || !node_online(nid))
nid = any_online_node(NODE_MASK_ALL);
nid = first_online_node;
out:
map_cpu_to_node(lcpu, nid);

Expand Down Expand Up @@ -1114,7 +1114,7 @@ int hot_add_scn_to_nid(unsigned long scn_addr)
int nid, found = 0;

if (!numa_enabled || (min_common_depth < 0))
return any_online_node(NODE_MASK_ALL);
return first_online_node;

memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
if (memory) {
Expand All @@ -1125,7 +1125,7 @@ int hot_add_scn_to_nid(unsigned long scn_addr)
}

if (nid < 0 || !node_online(nid))
nid = any_online_node(NODE_MASK_ALL);
nid = first_online_node;

if (NODE_DATA(nid)->node_spanned_pages)
return nid;
Expand Down
11 changes: 0 additions & 11 deletions trunk/include/linux/nodemask.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@
* int node_online(node) Is some node online?
* int node_possible(node) Is some node possible?
*
* int any_online_node(mask) First online node in mask
*
* node_set_online(node) set bit 'node' in node_online_map
* node_set_offline(node) clear bit 'node' in node_online_map
*
Expand Down Expand Up @@ -467,15 +465,6 @@ static inline int num_node_state(enum node_states state)
#define node_online_map node_states[N_ONLINE]
#define node_possible_map node_states[N_POSSIBLE]

#define any_online_node(mask) \
({ \
int node; \
for_each_node_mask(node, (mask)) \
if (node_online(node)) \
break; \
node; \
})

#define num_online_nodes() num_node_state(N_ONLINE)
#define num_possible_nodes() num_node_state(N_POSSIBLE)
#define node_online(node) node_state((node), N_ONLINE)
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ svc_pool_map_choose_mode(void)
return SVC_POOL_PERNODE;
}

node = any_online_node(node_online_map);
node = first_online_node;
if (nr_cpus_node(node) > 2) {
/*
* Non-trivial SMP, or CONFIG_NUMA on
Expand Down

0 comments on commit a58d2b3

Please sign in to comment.