Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932773Ab3FQLyf (ORCPT ); Mon, 17 Jun 2013 07:54:35 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:44668 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932663Ab3FQLye (ORCPT ); Mon, 17 Jun 2013 07:54:34 -0400 MIME-Version: 1.0 In-Reply-To: <1370589652-24549-6-git-send-email-alex.shi@intel.com> References: <1370589652-24549-1-git-send-email-alex.shi@intel.com> <1370589652-24549-6-git-send-email-alex.shi@intel.com> From: Paul Turner Date: Mon, 17 Jun 2013 04:54:02 -0700 Message-ID: Subject: Re: [patch v8 5/9] sched: update cpu load after task_tick. To: Alex Shi Cc: Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Andrew Morton , Borislav Petkov , Namhyung Kim , Mike Galbraith , Morten Rasmussen , Vincent Guittot , Preeti U Murthy , Viresh Kumar , LKML , Mel Gorman , Rik van Riel , Michael Wang , Jason Low , Changlong Xie , sgruszka@redhat.com, =?ISO-8859-1?Q?Fr=E9d=E9ric_Weisbecker?= Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1063 Lines: 34 On Fri, Jun 7, 2013 at 12:20 AM, Alex Shi wrote: > To get the latest runnable info, we need do this cpuload update after > task_tick. > > Signed-off-by: Alex Shi Reviewed-by: Paul Turner > --- > kernel/sched/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 6f226c2..05176b8 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -2152,8 +2152,8 @@ void scheduler_tick(void) > > raw_spin_lock(&rq->lock); > update_rq_clock(rq); > - update_cpu_load_active(rq); > curr->sched_class->task_tick(rq, curr, 0); > + update_cpu_load_active(rq); > raw_spin_unlock(&rq->lock); > > perf_event_task_tick(); > -- > 1.7.12 > -- 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/