From: Akinobu Mita Date: Fri, 27 Aug 2010 19:08:13 +0000 (+0000) Subject: mlx4: use bitmap library X-Git-Tag: v2.6.37-rc1~147^2~643 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e27cd4f8ca9dde7938f4f83ef75b6fae8d46dd5f;p=pandora-kernel.git 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 Cc: Roland Dreier Cc: netdev@vger.kernel.org Cc: "David S. Miller" Signed-off-by: David S. Miller --- Reading git-diff-tree failed