public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] preempt abstraction
@ 2002-01-08 17:40 David Howells
  2002-01-08 18:13 ` Jeff Garzik
  2002-01-08 18:57 ` Robert Love
  0 siblings, 2 replies; 11+ messages in thread
From: David Howells @ 2002-01-08 17:40 UTC (permalink / raw)
  To: torvalds, hch, arjanv; +Cc: linux-kernel


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-01-08 23:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-08 17:40 [PATCH] preempt abstraction David Howells
2002-01-08 18:13 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox