From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754063AbcE0FlH (ORCPT ); Fri, 27 May 2016 01:41:07 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:34818 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbcE0FlE (ORCPT ); Fri, 27 May 2016 01:41:04 -0400 MIME-Version: 1.0 In-Reply-To: <1464231181-30741-4-git-send-email-smuckle@linaro.org> References: <1464231181-30741-1-git-send-email-smuckle@linaro.org> <1464231181-30741-4-git-send-email-smuckle@linaro.org> Date: Fri, 27 May 2016 13:41:02 +0800 Message-ID: Subject: Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency From: Wanpeng Li To: Steve Muckle Cc: Peter Zijlstra , Ingo Molnar , "Rafael J. Wysocki" , Viresh Kumar , "linux-kernel@vger.kernel.org" , Linux PM list , Vincent Guittot , Morten Rasmussen , Dietmar Eggemann , Juri Lelli , Patrick Bellasi , Michael Turquette Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2016-05-26 10:53 GMT+08:00 Steve Muckle : > The slow-path frequency transition path is relatively expensive as it > requires waking up a thread to do work. Should support be added for > remote CPU cpufreq updates that is also expensive since it requires an > IPI. These activities should be avoided if they are not necessary. > > To that end, calculate the actual driver-supported frequency required by > the new utilization value in schedutil by using the recently added > cpufreq_driver_resolve_freq callback. If it is the same as the > previously requested driver frequency then there is no need to continue > with the update assuming the cpu frequency limits have not changed. This > will have additional benefits should the semantics of the rate limit be > changed to apply solely to frequency transitions rather than to > frequency calculations in schedutil. sugov_should_update_freq() still be called before get_nex_freq() after the patch applied, so rate limit still apply to both frequency transitions and frequency calculations, right? Regards, Wanpeng Li