Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] fix mdelay(1) for 64bit kernel with HZ == 1000
Date: Mon, 5 Dec 2005 14:35:30 +0000	[thread overview]
Message-ID: <20051205143530.GD2728@linux-mips.org> (raw)
In-Reply-To: <20051130.133326.126937941.nemoto@toshiba-tops.co.jp>

On Wed, Nov 30, 2005 at 01:33:26PM +0900, Atsushi Nemoto wrote:

> mdelay(1) (i.e. udelay(1000)) does not work correctly due to overflow.
> 
> 1000 * 0x004189374BC6A7f0 = 0x10000000000000180 (>= 2**64)
> 
> 0x004189374BC6A7ef (0x004189374BC6A7f0 - 1) is OK and it is exactly
> same as catchall case (0x8000000000000000UL / (500000 / HZ)).
> 
> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

Applied.

      reply	other threads:[~2005-12-05 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30  4:33 [PATCH] fix mdelay(1) for 64bit kernel with HZ == 1000 Atsushi Nemoto
2005-12-05 14:35 ` Ralf Baechle [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=20051205143530.GD2728@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=linux-mips@linux-mips.org \
    /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