Files
linux/arch/powerpc/kernel
Julia Lawall 14ea58ad79 powerpc: Use DIV_ROUND_CLOSEST in time init code
The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
but is perhaps more readable.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@haskernel@
@@

#include <linux/kernel.h>

@depends on haskernel@
expression x,__divisor;
@@

- (((x) + ((__divisor) / 2)) / (__divisor))
+ DIV_ROUND_CLOSEST(x,__divisor)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-08-20 10:29:26 +10:00
..
2008-12-21 14:21:16 +11:00
2008-12-21 14:21:16 +11:00
2007-05-11 05:38:25 -04:00
2008-06-30 22:31:00 +10:00
2009-06-16 19:47:28 -07:00
2008-05-23 22:43:11 +02:00
2009-06-12 16:53:38 +10:00
2009-07-12 12:22:34 -07:00
2008-12-21 14:21:16 +11:00
2009-08-20 10:12:34 +10:00
2007-10-11 14:36:47 +10:00