diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2010-08-27 19:08:13 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-28 22:37:04 (GMT) |
commit | e27cd4f8ca9dde7938f4f83ef75b6fae8d46dd5f (patch) | |
tree | 7a1ddef5bf95ea0892c9aa7bf9462b52506b6ef5 /REPORTING-BUGS | |
parent | 762c29164e2850d8c5e4c258cef0077b2584d111 (diff) | |
download | linux-e27cd4f8ca9dde7938f4f83ef75b6fae8d46dd5f.tar.xz |
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 <akinobu.mita@gmail.com>
Cc: Roland Dreier <rolandd@cisco.com>
Cc: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions