From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753165AbaA3PWP (ORCPT ); Thu, 30 Jan 2014 10:22:15 -0500 Received: from merlin.infradead.org ([205.233.59.134]:52814 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbaA3PWO (ORCPT ); Thu, 30 Jan 2014 10:22:14 -0500 Date: Thu, 30 Jan 2014 16:22:08 +0100 From: Peter Zijlstra To: Vincent Guittot Cc: linux-kernel , Ingo Molnar , Daniel Lezcano , Paul Turner , Benjamin Segall , Steven Rostedt Subject: Re: [PATCH 9/9] sched: Push down pre_schedule() and idle_balance() Message-ID: <20140130152208.GA5002@laptop.programming.kicks-ass.net> References: <20140128171634.974847076@infradead.org> <20140128171948.422404759@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 30, 2014 at 01:45:07PM +0100, Vincent Guittot wrote: > On 28 January 2014 18:16, Peter Zijlstra wrote: > > +idle: > > + idle_exit_fair(rq); > > It should be idle_enter_fair. > > we want to update the statistic with the running time of other classes > than CFS. > > The use case is: > > exit idle > put_prev_task_idle > --> idle_exit_fair (account elapsed idle time) > pick_next_task other than fair tasks > switch between "other than fair" tasks > ... > no more "other than fair" tasks to schedule > pick_next_task_fair > --> no fair task on the rq > --> jump to simple > --> idle_enter_fair (account elapsed running time of other class > before trying to pull fair task from other CPUs) > --> idle_balance() > ... Right.. terminal confusion on this topic it seems. Fixed it up.