powerpc: Fix some bugs in the new merged time code
authorPaul Mackerras <paulus@samba.org>
Thu, 20 Oct 2005 12:33:06 +0000 (22:33 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Oct 2005 12:33:06 +0000 (22:33 +1000)
commit5d14a18d59b661356409e5a1f624236155a209ba
tree445d21d8b1ec0e58623887f7ceb55c2d3f81f4d5
parent17a6392d30b4ed89b88a47a318b2b6de6ae7b946
powerpc: Fix some bugs in the new merged time code

I had the sense of the test for when to use the old 601-style RTC
registers inverted.  pmac_calibrate_decr and via_calibrate_decr
weren't setting ppc_tb_freq, on which all the further calculations
depended.  Lastly, update_gtod was losing the top 32 bits of
the new tb_to_xs value.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/time.c
arch/powerpc/platforms/powermac/time.c
include/asm-powerpc/time.h