Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753745AbYFRQQe (ORCPT ); Wed, 18 Jun 2008 12:16:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751657AbYFRQQZ (ORCPT ); Wed, 18 Jun 2008 12:16:25 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:61522 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751356AbYFRQQZ (ORCPT ); Wed, 18 Jun 2008 12:16:25 -0400 Date: Wed, 18 Jun 2008 12:16:21 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Nick Piggin cc: Gregory Haskins , Peter Zijlstra , Ingo Molnar , Andi Kleen , Clark Williams , Marin Mitov , Thomas Gleixner , Linus Torvalds , akpm@osdl.org, "Luis Claudio R. Goncalves" , LKML , linux-rt-users Subject: Re: [PATCH][resubmit] x86: enable preemption in delay In-Reply-To: <200806182242.49245.nickpiggin@yahoo.com.au> Message-ID: References: <200805252108.25011.mitov@issp.bas.bg> <1213791416.16944.222.camel@twins> <4858C68C.BA47.005A.0@novell.com> <200806182242.49245.nickpiggin@yahoo.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 796 Lines: 23 On Wed, 18 Jun 2008, Nick Piggin wrote: > There are _some_ cases where it can be used, but nobody has been > able to come up with compelling uses really. I don't think this > case is helped very much either because the logic in there using > preempt-disable is fine, isn't it? > > Except that it should also have a cond_resched in it. Seems like > an ideal place to put cond_resched because it is not a fastpath. > Does it really need a cond_resched? preempt_enable when it goes to zero will already check to see if it should schedule. -- Steve -- 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/