Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176243
b: refs/heads/master
c: c1e6c8d
h: refs/heads/master
i:
  176241: 642c149
  176239: 8705813
v: v3
  • Loading branch information
Lee Schermerhorn authored and Linus Torvalds committed Dec 15, 2009
1 parent 3fea686 commit 14dfa9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 6ae11b278bca1cd41651bae49a8c69de2f6a6262
refs/heads/master: c1e6c8d074ea3621106548654cc244d2edc12ead
11 changes: 8 additions & 3 deletions trunk/include/linux/nodemask.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,19 @@ static inline int __next_node(int n, const nodemask_t *srcp)
return min_t(int,MAX_NUMNODES,find_next_bit(srcp->bits, MAX_NUMNODES, n+1));
}

static inline void init_nodemask_of_node(nodemask_t *mask, int node)
{
nodes_clear(*mask);
node_set(node, *mask);
}

#define nodemask_of_node(node) \
({ \
typeof(_unused_nodemask_arg_) m; \
if (sizeof(m) == sizeof(unsigned long)) { \
m.bits[0] = 1UL<<(node); \
m.bits[0] = 1UL << (node); \
} else { \
nodes_clear(m); \
node_set((node), m); \
init_nodemask_of_node(&m, (node)); \
} \
m; \
})
Expand Down

0 comments on commit 14dfa9f

Please sign in to comment.