From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751350AbcEJINK (ORCPT ); Tue, 10 May 2016 04:13:10 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:38751 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbcEJING (ORCPT ); Tue, 10 May 2016 04:13:06 -0400 Date: Tue, 10 May 2016 10:13:01 +0200 From: Ingo Molnar To: "Rafael J. Wysocki" Cc: Steve Muckle , Peter Zijlstra , Linux PM list , Linux Kernel Mailing List , Viresh Kumar , Srinivas Pandruvada Subject: Re: [PATCH] sched/fair: Invoke cpufreq hooks for CONFIG_SMP unset Message-ID: <20160510081301.GA16790@gmail.com> References: <6282396.VVEdgVYxO3@vostro.rjw.lan> <20160507063051.GA23722@gmail.com> <20160509235316.GA30310@sky.smuckle.net> <2440649.iyOucdARxJ@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2440649.iyOucdARxJ@vostro.rjw.lan> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rafael J. Wysocki wrote: > On Monday, May 09, 2016 04:53:16 PM Steve Muckle wrote: > > On Sat, May 07, 2016 at 08:30:51AM +0200, Ingo Molnar wrote: > > > > > > * Peter Zijlstra wrote: > > > > > > > On Fri, May 06, 2016 at 02:58:43PM +0200, Rafael J. Wysocki wrote: > > > > > From: Rafael J. Wysocki > > > > > > > > > > Commit 34e2c555f3e1 (cpufreq: Add mechanism for registering utilization > > > > > update callbacks) overlooked the fact that update_load_avg(), where > > > > > CFS invokes cpufreq utilization update hooks, becomes an empty stub for > > > > > CONFIG_SMP unset. In consequence, if CONFIG_SMP is not set, cpufreq > > > > > governors are never invoked from CFS and they do not have a chance to > > > > > evaluate CPU performace levels and update them often enough. Needless > > > > > to say, things don't work as expected then. > > > > > > > > > > Fix the problem by making the !CONFIG_SMP stub of update_load_avg() > > > > > invoke cpufreq update hooks too. > > > > > > > > > > Fixes: 34e2c555f3e1 (cpufreq: Add mechanism for registering utilization update callbacks) > > > > > Reported-by: Steve Muckle > > > > > Signed-off-by: Rafael J. Wysocki > > > > > > > > Rafael; feel free to push this through the pm tree. > > > > > > > > Acked-by: Peter Zijlstra (Intel) > > > > > > I already have it in sched/urgent. > > > > Looks like this just missed 4.6-rc7 and the release email for > > that doesn't suggest an rc8, as it stands... > > But the final 4.6 will be released on Sunday or so and there are a few days left > still. Yeah, I'll send the sched/urgent bits to Linus later today. Thanks, Ingo