From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751893AbcEaFaT (ORCPT ); Tue, 31 May 2016 01:30:19 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:36052 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750907AbcEaFaP (ORCPT ); Tue, 31 May 2016 01:30:15 -0400 Date: Tue, 31 May 2016 11:00:11 +0530 From: Viresh Kumar To: Steve Muckle Cc: Peter Zijlstra , Ingo Molnar , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Vincent Guittot , Morten Rasmussen , Dietmar Eggemann , Juri Lelli , Patrick Bellasi , Michael Turquette Subject: Re: [PATCH v2 1/3] cpufreq: add resolve_freq driver callback Message-ID: <20160531053011.GD9463@vireshk-i7> References: <1464231181-30741-1-git-send-email-smuckle@linaro.org> <1464231181-30741-2-git-send-email-smuckle@linaro.org> <20160526062514.GU17585@vireshk-i7> <20160530153115.GE9864@graphite.smuckle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160530153115.GE9864@graphite.smuckle.net> 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 On 30-05-16, 08:31, Steve Muckle wrote: > My goal here was to have the system operate in this case in a manner > that is obviously not optimized (running at fmax), so the platform owner > realizes that the cpufreq driver doesn't fully support the schedutil > governor. > > I was originally going to just return an error code but that also means > having to check for it which would be nice to avoid if possible on this > fast path. Okay, I get what you are saying. But all we are doing here is to make things fast by not sending IPIs, etc. That should *not* lead to a behavior where the frequency stays at MAX all the time even if the driver doesn't provide this callback or the freq-table. If we just return the target_freq in this case instead of UINT_MAX, the platform may eventually have some unnecessary IPIs, wakeups, etc, but its frequency will still be switched properly. Wouldn't that be a better choice ? -- viresh