Subject: Date: Mon Jan 09 11:53:50 CST 2012 Signed-off-by: Wu Fengguang --- include/linux/proportions.h | 4 ++++ 1 file changed, 4 insertions(+) --- linux.orig/include/linux/proportions.h 2012-01-09 11:51:19.000000000 +0800 +++ linux/include/linux/proportions.h 2012-01-09 11:53:47.000000000 +0800 @@ -81,7 +81,11 @@ void prop_inc_percpu(struct prop_descrip * Limit the time part in order to ensure there are some bits left for the * cycle counter and fraction multiply. */ +#if BITS_PER_LONG == 32 #define PROP_MAX_SHIFT (3*BITS_PER_LONG/4) +#else +#define PROP_MAX_SHIFT (BITS_PER_LONG/2) +#endif #define PROP_FRAC_SHIFT (BITS_PER_LONG - PROP_MAX_SHIFT - 1) #define PROP_FRAC_BASE (1UL << PROP_FRAC_SHIFT)