[PATCH] ppc: Fix timekeeping with HZ=250 on some Mac models

Older Macs which uses the VIA chip timers to calibrate the timebase used
some code that wouldn't work if HZ wasn't divisible by 100...

This fixes it at least for 250. Not totally perfect but should be
enough for now (so it at least works with the default value which is now
250).

There is still a potential issue with the core using CLOCK_TICK_RATE to
maintain xtime and CLOCK_TICK_RATE value on ppc32 is pure crap, but that
is a different problem, this patch at least brings us back to our
previous situation.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Benjamin Herrenschmidt and committed by Linus Torvalds 23cb8c29 329d4dd7

+1 -1
+1 -1
arch/ppc/platforms/pmac_time.c
··· 195 ; 196 dend = get_dec(); 197 198 - tb_ticks_per_jiffy = (dstart - dend) / (6 * (HZ/100)); 199 tb_to_us = mulhwu_scale_factor(dstart - dend, 60000); 200 201 printk(KERN_INFO "via_calibrate_decr: ticks per jiffy = %u (%u ticks)\n",
··· 195 ; 196 dend = get_dec(); 197 198 + tb_ticks_per_jiffy = (dstart - dend) / ((6 * HZ)/100); 199 tb_to_us = mulhwu_scale_factor(dstart - dend, 60000); 200 201 printk(KERN_INFO "via_calibrate_decr: ticks per jiffy = %u (%u ticks)\n",