[patch] mach_countup() fix

From: Andrew Morton (akpm@digeo.com)
Date: Fri Apr 18 2003 - 00:08:59 EST


Jeff Garzik <jgarzik@pobox.com> wrote:
>
> Just booted into 2.5.67-BK-latest (plus my __builtin_memcpy patch).
> Everything seems to be running just fine, so naturally one must nitpick
> little things like being told my CPU is running at 0.000 Mhz. :)
>

Missing parentheses in mach_countup().

diff -puN include/asm-i386/mach-default/mach_timer.h~a include/asm-i386/mach-default/mach_timer.h
--- 25/include/asm-i386/mach-default/mach_timer.h~a 2003-04-17 22:02:12.000000000 -0700
+++ 25-akpm/include/asm-i386/mach-default/mach_timer.h 2003-04-17 22:02:49.000000000 -0700
@@ -40,7 +40,7 @@ static inline void mach_countup(unsigned
 {
         *count = 0L;
         do {
- *count++;
+ (*count)++;
         } while ((inb_p(0x61) & 0x20) == 0);
 }
 

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 22:00:23 EST