Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 26 Jan 2002 05:08:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 26 Jan 2002 05:08:05 -0500 Received: from nrg.org ([216.101.165.106]:39266 "EHLO nrg.org") by vger.kernel.org with ESMTP id ; Sat, 26 Jan 2002 05:07:52 -0500 Date: Sat, 26 Jan 2002 02:07:38 -0800 (PST) From: Nigel Gamble Reply-To: nigel@nrg.org To: Robert Love cc: David Howells , , Subject: Re: [PATCH] syscall latency improvement #1 In-Reply-To: <1011998120.3505.29.camel@phantasy> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 25 Jan 2002, Robert Love wrote: > Mmm, I like it. Ingo Molnar talked to me about this (he wants such a > feature, too) earlier. This is a real win. > > This patch is beneficial to the kernel preemption patch. Note that with a fully preemptible kernel, there is no need to test need_resched on return from system call, since any needed reschedule should already have been done. If the need_resched was set by an interrupt handler, the preempt_schedule on return from interrupt (or on exit from non-preemptible region) will have done the reschedule. And if need_resched was set because one process woke up another (higher priority) process, we can do the schedule() immediately, unless we are in a non-preemptible region in which case it will happen on exit from that region. I don't think we do an immediate schedule on wakeup yet but, with the existing preemption patch, that would make the test on syscall exit completely redundant (which may enable the cli instruction to be safely removed). Nigel Gamble nigel@nrg.org Mountain View, CA, USA. http://www.nrg.org/ - 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/