summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2010-08-27 19:08:13 +0000
committerDavid S. Miller <davem@davemloft.net>2010-08-28 15:37:04 -0700
commite27cd4f8ca9dde7938f4f83ef75b6fae8d46dd5f (patch)
tree7a1ddef5bf95ea0892c9aa7bf9462b52506b6ef5 /net
parent762c29164e2850d8c5e4c258cef0077b2584d111 (diff)
downloadop-kernel-dev-e27cd4f8ca9dde7938f4f83ef75b6fae8d46dd5f.zip
op-kernel-dev-e27cd4f8ca9dde7938f4f83ef75b6fae8d46dd5f.tar.gz
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 'net')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud