[PATCH] ppc32: fix last_jiffy time comparison
authorPaul Mackerras <paulus@samba.org>
Wed, 30 Aug 2006 06:13:16 +0000 (16:13 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 31 Aug 2006 04:21:55 +0000 (21:21 -0700)
commiteb36c2884a1a2190791afe65fd833b2d3cd4b999
tree2bc7defdfee59f273e81a5ddd2e792c65bb93d4c
parent98a3c781057fa43494e7e8b39d639e93fca0ecbf
[PATCH] ppc32: fix last_jiffy time comparison

This fixes a hang on ppc32.

The problem was that I was comparing a 32-bit quantity with a 64-bit
quantity, and consequently time wasn't advancing.  This makes us use a
64-bit quantity on all platforms, which ends up simplifying the code
since we can now get rid of the tb_last_stamp variable (which actually
fixes another bug that Ben H and I noticed while going carefully through
the code).

This works fine on my G4 tibook.  Let me know how it goes on your
machines.

Acked-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/powerpc/kernel/time.c
include/asm-powerpc/time.h