Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964872AbWILDag (ORCPT ); Mon, 11 Sep 2006 23:30:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964881AbWILDag (ORCPT ); Mon, 11 Sep 2006 23:30:36 -0400 Received: from mta6.srv.hcvlny.cv.net ([167.206.4.201]:47271 "EHLO mta6.srv.hcvlny.cv.net") by vger.kernel.org with ESMTP id S964872AbWILDaf (ORCPT ); Mon, 11 Sep 2006 23:30:35 -0400 Date: Mon, 11 Sep 2006 23:30:34 -0400 From: Nick Orlov Subject: Re: [PATCH 2.6.18-rc6-mm1 1/2] cpufreq: make it harder for cpu to leave "hot" mode In-reply-to: <20060912032924.GA3677@nickolas.homeunix.com> To: linux-kernel , cpufreq@lists.linux.org.uk Cc: Andrew Morton , Dave Jones Mail-followup-to: linux-kernel , cpufreq@lists.linux.org.uk, Andrew Morton , Dave Jones Message-id: <20060912033034.GB3677@nickolas.homeunix.com> MIME-version: 1.0 Content-type: text/plain; charset=koi8-r Content-transfer-encoding: 7BIT Content-disposition: inline References: <20060912032924.GA3677@nickolas.homeunix.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1419 Lines: 44 From: Nick Orlov Make hysteresis wider (20% instead of 10). Signed-off-by: Nick Orlov --- linux-2.6.18-rc6/drivers/cpufreq/cpufreq_ondemand.c 2006-09-11 21:22:50.000000000 -0400 +++ linux-2.6.18-rc6-mm1-nick/drivers/cpufreq/cpufreq_ondemand.c 2006-09-11 20:49:10.000000000 -0400 @@ -25,7 +25,7 @@ */ #define DEF_FREQUENCY_UP_THRESHOLD (80) -#define MIN_FREQUENCY_UP_THRESHOLD (11) +#define MIN_FREQUENCY_UP_THRESHOLD (21) #define MAX_FREQUENCY_UP_THRESHOLD (100) /* @@ -290,12 +315,12 @@ /* * The optimal frequency is the frequency that is the lowest that * can support the current CPU usage without triggering the up - * policy. To be safe, we focus 10 points under the threshold. + * policy. To be safe, we focus 20 points under the threshold. */ - if (load < (dbs_tuners_ins.up_threshold - 10)) { + if (load < (dbs_tuners_ins.up_threshold - 20)) { unsigned int freq_next; freq_next = (policy->cur * load) / - (dbs_tuners_ins.up_threshold - 10); + (dbs_tuners_ins.up_threshold - 20); __cpufreq_driver_target(policy, freq_next, CPUFREQ_RELATION_L); } _ -- With best wishes, Nick Orlov. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/