lkml.org 
[lkml]   [2003]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] mach_countup() fix
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.059 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site