From: Jesper S. <js...@re...> - 2000-10-26 09:03:11
|
This is the accuracy fix I mentioned the other day. Jesper Index: ChangeLog =================================================================== RCS file: /cvsroot/linuxsh/kernel/ChangeLog,v retrieving revision 1.105 diff -u -5 -r1.105 ChangeLog --- ChangeLog 2000/10/13 02:11:57 1.105 +++ ChangeLog 2000/10/26 09:01:55 @@ -1,5 +1,11 @@ +2000-10-26 Jesper Skov <js...@re...> + + David Woodhouse <dw...@re...>: + * arch/sh/kernel/time.c (get_cpu_mhz): Align loop to ensure + accuracy. + 2000-01-13 Greg Banks <gb...@po...> * arch/sh/config.in: HD64465 PCMCIA support. These changes needed for the PCMCIA host bridge driver currently submitted to the PCMCIA maintainer. Index: arch/sh/kernel/time.c =================================================================== RCS file: /cvsroot/linuxsh/kernel/arch/sh/kernel/time.c,v retrieving revision 1.16 diff -u -5 -r1.16 time.c --- arch/sh/kernel/time.c 2000/09/30 03:43:30 1.16 +++ arch/sh/kernel/time.c 2000/10/26 09:01:57 @@ -335,10 +335,11 @@ sti(); do {} while (ctrl_inb(R64CNT) != 0); ctrl_outb(RCR1_CIE, RCR1); /* Enable carry interrupt */ asm volatile( + ".align2\n\t" "1:\t" "tst %1,%1\n\t" "bt/s 1b\n\t" " add #1,%0" : "=r"(count), "=z" (__dummy) |