Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752562AbdCOSC7 (ORCPT ); Wed, 15 Mar 2017 14:02:59 -0400 Received: from foss.arm.com ([217.140.101.70]:50802 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751177AbdCOSC6 (ORCPT ); Wed, 15 Mar 2017 14:02:58 -0400 Date: Wed, 15 Mar 2017 18:02:51 +0000 From: Patrick Bellasi To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Viresh Kumar , Vincent Guittot , John Stultz , Juri Lelli , Todd Kjos , Tim Murray , Andres Oportus , Joel Fernandes , Morten Rasmussen , Dietmar Eggemann , Chris Redpath , Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" Subject: Re: [PATCH 2/6] cpufreq: schedutil: ignore the sugov kthread for frequencies selections Message-ID: <20170315180251.GI18557@e110439-lin> References: <1488469507-32463-1-git-send-email-patrick.bellasi@arm.com> <1488469507-32463-3-git-send-email-patrick.bellasi@arm.com> <20170306093541.0cb8d4d3@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170306093541.0cb8d4d3@gandalf.local.home> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 673 Lines: 23 On 06-Mar 09:35, Steven Rostedt wrote: > On Thu, 2 Mar 2017 15:45:03 +0000 > Patrick Bellasi wrote: > > > @@ -287,6 +289,10 @@ static void sugov_update_shared(struct update_util_data *hook, u64 time, > > goto done; > > } > > > > + /* Skip updates generated by sugov kthreads */ > > + if (curr == sg_policy->thread) > > I think you want to put in an "unlikely()" around that statement. I'm > assuming you don't care about he performance of scheduling in the sugov > thread. At least tell gcc to optimize for the false path. Right, good point! Will add it in the next posting! +1 Thanks! -- #include Patrick Bellasi