public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [patch] remove set_tsk_need_resched() from init_idle()
Date: Wed, 25 May 2005 02:00:00 +1000	[thread overview]
Message-ID: <42934F80.9040001@yahoo.com.au> (raw)
In-Reply-To: <20050524154230.GA17814@elte.hu>

Ingo Molnar wrote:

> --
> 
> this patch (ontop of the current -mm scheduler patchset) tweaks 
> cpu_idle() semantics a bit: it changes the idle loops (that do 
> preemption) to call the first schedule() unconditionally.
> 
> the advantage is that as a result we dont have to set the idle thread's 
> NEED_RESCHED flag in init_idle(), which in turn makes cond_resched() 
> even more of an invariant: it can be called even from init code without 
> it having any effect. A cond resched in the init codepath hangs 
> otherwise.
> 
> this patch, while having no negative side-effects, enables wider use of 
> cond_resched()s. (which might happen in the stock kernel too, but it's 
> particulary important for voluntary-preempt) (note that for now this 
> patch only covers architectures that use kernel/Kconfig.preempt, but all 
> other architectures will work just fine too.)
> 
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
> 

Looks fine.
Acked-by: Nick Piggin <nickpiggin@yahoo.com.au>



  reply	other threads:[~2005-05-24 16:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-24 12:15 [patch] remove set_tsk_need_resched() from init_idle() Ingo Molnar
2005-05-24 13:21 ` [patch] Voluntary Kernel Preemption, 2.6.12-rc4-mm2 Ingo Molnar
2005-05-24 14:56   ` Christoph Hellwig
2005-05-24 15:09     ` Ingo Molnar
2005-05-24 15:21       ` Nick Piggin
2005-05-24 15:33         ` Arjan van de Ven
2005-05-24 15:34           ` Nick Piggin
2005-05-24 15:39         ` Ingo Molnar
2005-05-24 15:59           ` Nick Piggin
2005-05-24 16:11             ` Ingo Molnar
2005-05-25 19:48       ` Christoph Hellwig
2005-05-24 14:06 ` [patch] remove set_tsk_need_resched() from init_idle() Ingo Molnar
2005-05-24 15:02   ` Nick Piggin
2005-05-24 15:05     ` Ingo Molnar
2005-05-24 15:24       ` Nick Piggin
2005-05-24 15:27         ` Ingo Molnar
2005-05-24 15:42           ` Ingo Molnar
2005-05-24 16:00             ` Nick Piggin [this message]
2005-05-25 12:24             ` Andrew Morton
2005-05-25 13:51               ` Ingo Molnar
2005-05-25 13:58                 ` Ingo Molnar
2005-05-28 16:32                 ` Russell King
2005-05-28 18:51                   ` Ingo Molnar
2005-05-29  4:05                     ` Nick Piggin
2005-05-29  6:01                       ` Ingo Molnar

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=42934F80.9040001@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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