Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 8 Jan 2002 12:40:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 8 Jan 2002 12:40:43 -0500 Received: from dell-paw-3.cambridge.redhat.com ([195.224.55.237]:23024 "HELO executor.cambridge.redhat.com") by vger.kernel.org with SMTP id ; Tue, 8 Jan 2002 12:40:24 -0500 To: torvalds@transmeta.com, hch@caldera.com, arjanv@redhat.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] preempt abstraction User-Agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Date: Tue, 08 Jan 2002 17:40:19 +0000 Message-ID: <10940.1010511619@warthog.cambridge.redhat.com> From: David Howells Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/