All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Linus Torvalds <torvalds@osdl.org>, Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH] pmac_cpufreq msleep cleanup/fixes
Date: Sat, 23 Oct 2004 08:36:56 +1000	[thread overview]
Message-ID: <1098484616.6028.80.camel@gaston> (raw)
In-Reply-To: <200410221906.i9MJ63Ai022889@hera.kernel.org>

On Sat, 2004-10-23 at 04:11, Linux Kernel Mailing List wrote:
> ChangeSet 1.2015, 2004/10/22 11:11:36-07:00, nacc@us.ibm.com
> 
> 	[PATCH] pmac_cpufreq msleep cleanup/fixes
> 	
> 	Uses msleep() instead of schedule_timeout() to guarantee the task delays
> 	as expected.  Two of the changes are reworks of previous msleep() calls
> 	which unnecessarily added a jiffy to the parameter.
> 	
> 	Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
> 	Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Please revert that change until we have made absolutely sure that msleep(1)
on a HZ=1000 machine will actually sleep at least 1ms, this is really not
clear since it will end up doing schedule_timeout(1) which, afaik, will
only guarantee to sleep up to the next jiffie, which can be a lot shorter
than the actual duration of a jiffie.

Ben.



       reply	other threads:[~2004-10-22 22:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200410221906.i9MJ63Ai022889@hera.kernel.org>
2004-10-22 22:36 ` Benjamin Herrenschmidt [this message]
2004-10-22 22:53   ` [PATCH] pmac_cpufreq msleep cleanup/fixes Linus Torvalds
2004-10-22 23:17     ` Benjamin Herrenschmidt
2004-10-22 23:43       ` Nishanth Aravamudan
2004-10-23  0:33         ` Paul Mackerras
2004-10-22 23:51       ` Linus Torvalds
2004-10-25  0:19     ` [PATCH][RESEND] Fix msleep to sleep _at_least_ the requested amount Benjamin Herrenschmidt

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=1098484616.6028.80.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulus@samba.org \
    --cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.