From: David Howells <dhowells@redhat.com>
To: torvalds@transmeta.com, hch@caldera.com, arjanv@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] preempt abstraction
Date: Tue, 08 Jan 2002 17:40:19 +0000 [thread overview]
Message-ID: <10940.1010511619@warthog.cambridge.redhat.com> (raw)
The following patch abstracts access to need_resched:
ftp://infradead.org/pub/people/dwh/preempt-252p10.diff.bz2
It replaces most C-source read accesses to it with need_preempt() which
returns true if rescheduling is necessary.
It also replaces instances of:
if (current->need_resched())
schedule();
With:
preempt();
It doesn't (or at least shouldn't) do anything else.
Cheers,
David
next reply other threads:[~2002-01-08 17:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-08 17:40 David Howells [this message]
2002-01-08 18:13 ` [PATCH] preempt abstraction Jeff Garzik
2002-01-08 18:57 ` Robert Love
2002-01-08 18:59 ` Christoph Hellwig
2002-01-08 20:52 ` Andrew Morton
2002-01-08 21:25 ` Roger Larsson
2002-01-08 22:12 ` Daniel Phillips
2002-01-08 22:35 ` David Howells
2002-01-08 22:46 ` David Howells
2002-01-08 23:05 ` Robert Love
2002-01-08 21:30 ` Robert Love
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=10940.1010511619@warthog.cambridge.redhat.com \
--to=dhowells@redhat.com \
--cc=arjanv@redhat.com \
--cc=hch@caldera.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 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.