From: Eli Cohen Date: Tue, 22 Mar 2011 22:38:45 +0000 (+0000) Subject: mlx4_core: maintain available field in bitmap allocator X-Git-Tag: v2.6.39-rc1~54^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d1e017e2f040c3e3d62b6cfa3a26351a865d04;p=pandora-kernel.git mlx4_core: maintain available field in bitmap allocator Add mlx4_bitmap_avail() to give the number of available resources. We want to use this as a hint to whether to allocate a resources or not. This patch is introduced to be used with allocation blue flame registers. Signed-off-by: Eli Cohen Signed-off-by: David S. Miller --- Reading git-diff-tree failed