From patchwork Thu Feb 3 12:58:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 529281 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p13CwDdr003862 for ; Thu, 3 Feb 2011 12:58:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932088Ab1BCM5s (ORCPT ); Thu, 3 Feb 2011 07:57:48 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:41488 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756350Ab1BCM5r convert rfc822-to-8bit (ORCPT ); Thu, 3 Feb 2011 07:57:47 -0500 Received: from canuck.infradead.org ([2001:4978:20e::1]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Pkyki-0001CS-2k; Thu, 03 Feb 2011 12:57:36 +0000 Received: from j77219.upc-j.chello.nl ([24.132.77.219] helo=laptop) by canuck.infradead.org with esmtpsa (Exim 4.72 #1 (Red Hat Linux)) id 1Pkykg-0000EN-34; Thu, 03 Feb 2011 12:57:34 +0000 Received: by laptop (Postfix, from userid 1000) id DC75D10C902B0; Thu, 3 Feb 2011 13:58:34 +0100 (CET) Subject: Re: [PATCH -v8a 3/7] sched: use a buddy to implement yield_task_fair From: Peter Zijlstra To: Rik van Riel Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Avi Kiviti , Srivatsa Vaddagiri , Mike Galbraith , Chris Wright , "Nakajima, Jun" In-Reply-To: <20110201095103.3a79e92a@annuminas.surriel.com> References: <20110201094433.72829892@annuminas.surriel.com> <20110201095103.3a79e92a@annuminas.surriel.com> Date: Thu, 03 Feb 2011 13:58:34 +0100 Message-ID: <1296737914.26581.365.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 03 Feb 2011 12:58:13 +0000 (UTC) Index: linux-2.6/kernel/sched_fair.c =================================================================== --- linux-2.6.orig/kernel/sched_fair.c +++ linux-2.6/kernel/sched_fair.c @@ -431,6 +431,7 @@ static struct sched_entity *__pick_next_ return rb_entry(next, struct sched_entity, run_node); } +#ifdef CONFIG_SCHED_DEBUG static struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq) { struct rb_node *last = rb_last(&cfs_rq->tasks_timeline); @@ -445,7 +446,6 @@ static struct sched_entity *__pick_last_ * Scheduling class statistics methods: */ -#ifdef CONFIG_SCHED_DEBUG int sched_proc_update_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)