From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stratos Karafotis Subject: Re: Ask for help on governor Date: Thu, 14 Dec 2017 20:25:02 +0200 Message-ID: <424841c2-f2e6-5f8e-32f4-4ec37b07b045@semaphore.gr> References: <000801d37364$d48f6ed0$7dae4c70$@net> <000f01d373bf$deacca10$9c065e30$@net> <20171213061759.GT25177@vireshk-i7> <000701d37479$e0570320$a1050960$@net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mail.semaphore.gr ([138.201.185.188]:48956 "EHLO mail.semaphore.gr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753743AbdLNSex (ORCPT ); Thu, 14 Dec 2017 13:34:53 -0500 In-Reply-To: Content-Language: en-MW Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Andy Tang , Doug Smythies , 'Viresh Kumar' Cc: "'Rafael J. Wysocki'" , "'Rafael J. Wysocki'" , 'Linux PM' Hi On 14/12/2017 04:42 πμ, Andy Tang wrote: > > >> -----Original Message----- >> From: Doug Smythies [mailto:dsmythies@telus.net] >> Sent: Thursday, December 14, 2017 9:21 AM >> To: Andy Tang ; 'Viresh Kumar' >> ; 'Stratos Karafotis' >> Cc: 'Rafael J. Wysocki' ; 'Rafael J. Wysocki' >> ; 'Linux PM' ; Doug >> Smythies >> Subject: RE: Ask for help on governor >> >> diff --git a/drivers/cpufreq/cpufreq_governor.c >> b/drivers/cpufreq/cpufreq_governor.c >> index 58d4f4e..3493ca7 100644 >> --- a/drivers/cpufreq/cpufreq_governor.c >> +++ b/drivers/cpufreq/cpufreq_governor.c >> @@ -222,6 +222,7 @@ unsigned int dbs_update(struct cpufreq_policy >> *policy) >> max_load = load; >> } >> >> + idle_periods = 0; > > With this line added, conservative governor works well. > > Ondemand governor still can't work well. > As I mentioned in earlier email, load varies from different sampling_rate. > > Regards, > Andy > I'm not sure I understood what the problem is (maybe because I can't see the description of the issue in the quotes). Commit 00bfe05889e91b5112893b001e4a47b0a0f8bdd7 affects only conservative governor. Do you have the same issue with ondemand too? Stratos