Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187307
b: refs/heads/master
c: 8c1840f
h: refs/heads/master
i:
  187305: 239157a
  187303: f19570e
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Mar 12, 2010
1 parent e7e6333 commit ef12ffd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: 0fbcae222b8aa3a47034a484e02e7fc14050c783
refs/heads/master: 8c1840f15feecb6961f480cad1a7a8e53a3f2ba6
15 changes: 4 additions & 11 deletions trunk/drivers/misc/sgi-gru/grutables.h
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,7 @@ struct gru_blade_state {

/* Scan all active GRUs in a GRU bitmap */
#define for_each_gru_in_bitmap(gid, map) \
for ((gid) = find_first_bit((map), GRU_MAX_GRUS); (gid) < GRU_MAX_GRUS;\
(gid)++, (gid) = find_next_bit((map), GRU_MAX_GRUS, (gid)))
for_each_set_bit((gid), (map), GRU_MAX_GRUS)

/* Scan all active GRUs on a specific blade */
#define for_each_gru_on_blade(gru, nid, i) \
Expand All @@ -536,23 +535,17 @@ struct gru_blade_state {

/* Scan each CBR whose bit is set in a TFM (or copy of) */
#define for_each_cbr_in_tfm(i, map) \
for ((i) = find_first_bit(map, GRU_NUM_CBE); \
(i) < GRU_NUM_CBE; \
(i)++, (i) = find_next_bit(map, GRU_NUM_CBE, i))
for_each_set_bit((i), (map), GRU_NUM_CBE)

/* Scan each CBR in a CBR bitmap. Note: multiple CBRs in an allocation unit */
#define for_each_cbr_in_allocation_map(i, map, k) \
for ((k) = find_first_bit(map, GRU_CBR_AU); (k) < GRU_CBR_AU; \
(k) = find_next_bit(map, GRU_CBR_AU, (k) + 1)) \
for_each_set_bit((k), (map), GRU_CBR_AU) \
for ((i) = (k)*GRU_CBR_AU_SIZE; \
(i) < ((k) + 1) * GRU_CBR_AU_SIZE; (i)++)

/* Scan each DSR in a DSR bitmap. Note: multiple DSRs in an allocation unit */
#define for_each_dsr_in_allocation_map(i, map, k) \
for ((k) = find_first_bit((const unsigned long *)map, GRU_DSR_AU);\
(k) < GRU_DSR_AU; \
(k) = find_next_bit((const unsigned long *)map, \
GRU_DSR_AU, (k) + 1)) \
for_each_set_bit((k), (const unsigned long *)(map), GRU_DSR_AU) \
for ((i) = (k) * GRU_DSR_AU_CL; \
(i) < ((k) + 1) * GRU_DSR_AU_CL; (i)++)

Expand Down

0 comments on commit ef12ffd

Please sign in to comment.