aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2010-08-27 19:08:13 +0000
committerDavid S. Miller <[email protected]>2010-08-28 15:37:04 -0700
commite27cd4f8ca9dde7938f4f83ef75b6fae8d46dd5f (patch)
tree7a1ddef5bf95ea0892c9aa7bf9462b52506b6ef5 /scripts
parent762c29164e2850d8c5e4c258cef0077b2584d111 (diff)
mlx4: use bitmap library
Replace loops calling set_bit() and clear_bit() with bitmap_set() and bitmap_clear(). Unlike loops calling set_bit() and clear_bit(), bitmap_set() and bitmap_clear() are not atomic. But this is ok. Because the bitmap operations are protected by bitmap->lock except for initialization of the bitmap in mlx4_bitmap_init(). Signed-off-by: Akinobu Mita <[email protected]> Cc: Roland Dreier <[email protected]> Cc: [email protected] Cc: "David S. Miller" <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions