Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752777AbYH1J0i (ORCPT ); Thu, 28 Aug 2008 05:26:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751422AbYH1J03 (ORCPT ); Thu, 28 Aug 2008 05:26:29 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:55189 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751285AbYH1J03 (ORCPT ); Thu, 28 Aug 2008 05:26:29 -0400 Date: Thu, 28 Aug 2008 11:25:59 +0200 From: Ingo Molnar To: Bharata B Rao Cc: linux-kernel@vger.kernel.org, Srivatsa Vaddagiri , Peter Zijlstra Subject: Re: [patch] sched: call resched_task() conditionally from new task wake up path. Message-ID: <20080828092559.GA25929@elte.hu> References: <20080828091249.GA3303@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080828091249.GA3303@in.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 929 Lines: 25 * Bharata B Rao wrote: > Hi, > > sched: call resched_task() conditionally from new task wake up path. > > - During wake up of a new task, task_new_fair() can do a resched_task() > on the current task. Later in the code path, check_preempt_curr() also ends > up doing the same, which can be avoided. Check if TIF_NEED_RESCHED is > already set for the current task. > > - task_new_fair() does a resched_task() on the current task unconditionally. > This can be done only in case when child runs before the parent. > > Signed-off-by: Bharata B Rao well spotted - applied to tip/sched/devel, thanks Bharata. Ingo -- 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/