aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bust_spinlocks.c
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-10-16 23:29:32 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 08:42:56 -0700
commitb311e921b385b5a848f0806df16276aca1ecae07 (patch)
tree957947e319b23150ddbbf7db52f9bdd24b6cdba5 /lib/bust_spinlocks.c
parentmake dmapool code use __set_current_state() (diff)
downloadlinux-dev-b311e921b385b5a848f0806df16276aca1ecae07.tar.xz
linux-dev-b311e921b385b5a848f0806df16276aca1ecae07.zip
Add a "rounddown_pow_of_two" routine to log2.h
To go along with the existing "roundup_pow_of_two" routine, add one for rounding down since that operation appears to crop up on a regular basis in the source tree. [m.kozlowski@tuxland.pl: fix unbalanced parentheses] Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions