mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@transmeta.com>
Subject: [patch] mach_countup() fix
Date: Thu, 17 Apr 2003 22:08:59 -0700	[thread overview]
Message-ID: <20030417220859.6d1a0fcc.akpm@digeo.com> (raw)
In-Reply-To: <3E9F5EAD.2070006@pobox.com>

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);
 }
 

_


      parent reply	other threads:[~2003-04-18  4:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-18  2:10 My P3 runs at.... zero Mhz (bug rpt) Jeff Garzik
2003-04-18  4:44 ` Jurriaan
2003-04-18 21:11   ` Dave Jones
2003-04-18 21:44     ` Petr Konecny
2003-04-18 23:50       ` Alan Cox
2003-04-19  0:07         ` Jeff Garzik
2003-04-18  5:08 ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030417220859.6d1a0fcc.akpm@digeo.com \
    --to=akpm@digeo.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®