[patch] mach_countup() fix

Andrew Morton (akpm@digeo.com)
Thu, 17 Apr 2003 22:08:59 -0700


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/