aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2012-08-24 17:25:01 -0700
committerGuenter Roeck <[email protected]>2012-09-01 18:58:09 -0700
commitb6d86d3d6d6e4c9b588d81615c81b5a8292b62ed (patch)
tree814c4ba720911beba197b610d4bd4559a26c3e96 /arch/powerpc/lib/code-patching.c
parent4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff)
linux/kernel.h: Fix DIV_ROUND_CLOSEST to support negative dividends
DIV_ROUND_CLOSEST returns a bad result for negative dividends: DIV_ROUND_CLOSEST(-2, 2) = 0 Most of the time this does not matter. However, in the hardware monitoring subsystem, DIV_ROUND_CLOSEST is sometimes used on integers which can be negative (such as temperatures). Signed-off-by: Guenter Roeck <[email protected]> Acked-by: Jean Delvare <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions