Re: 2.6.18-rc4-mm1 - time moving at 3x speed, bisect finished

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sun, 20 Aug 2006, [email protected] wrote:

> The interesting part:
> 
> 3b9aca0000000000,d2ea237f00000000,d2ea237f00000000,35fe7fdef9db22
> 3b9aca0000000000,d2ea237f00000000,d2ea237f00000000,35fe7fdef9db22
> 3b9aca0000000000,d2ea237f00000000,d2ea237f00000000,35fe7fdef9db22
> 3b9aca0000000000,d2ea237f00000000,d2ea237f00000000,35fe7fdef9db22
> 3b9aca0000000000,d2ea237f00000000,d2ea237f00000000,35fe7fdef9db22
> 3b9aca0000000000,d2ea237f00000000,d2ea237f00000000,35fe7fdef9db22

Thanks for testing, it's a silly sign problem. gcc turned the divide into 
an unsigned one.

bye, Roman

Signed-off-by: Roman Zippel <[email protected]>

---
 kernel/time/ntp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-mm/kernel/time/ntp.c
===================================================================
--- linux-2.6-mm.orig/kernel/time/ntp.c
+++ linux-2.6-mm/kernel/time/ntp.c
@@ -41,7 +41,7 @@ static long time_reftime;		/* time at la
 long time_adjust;
 
 #define CLOCK_TICK_OVERFLOW	(LATCH * HZ - CLOCK_TICK_RATE)
-#define CLOCK_TICK_ADJUST	(((s64)CLOCK_TICK_OVERFLOW * NSEC_PER_SEC) / CLOCK_TICK_RATE)
+#define CLOCK_TICK_ADJUST	(((s64)CLOCK_TICK_OVERFLOW * NSEC_PER_SEC) / (s64)CLOCK_TICK_RATE)
 
 static void ntp_update_frequency(void)
 {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux