Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 22 Nov 2002 01:14:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 22 Nov 2002 01:14:39 -0500 Received: from modemcable017.51-203-24.mtl.mc.videotron.ca ([24.203.51.17]:30705 "EHLO montezuma.mastecende.com") by vger.kernel.org with ESMTP id ; Fri, 22 Nov 2002 01:14:38 -0500 Date: Fri, 22 Nov 2002 01:15:30 -0500 (EST) From: Zwane Mwaikambo X-X-Sender: zwane@montezuma.mastecende.com To: Ian Morgan cc: Linux Kernel Mailing List Subject: Re: p4-clockmod doing the Right Thing[tm]? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1450 Lines: 39 On Tue, 19 Nov 2002, Ian Morgan wrote: > # cat /proc/cpufreq > minimum CPU frequency - maximum CPU frequency - policy > CPU 0 2405487 kHz ( 100 %) - 2706165 kHz (112 %) - powersave Can you try this patch? Index: linux-2.4.20-rc1-ac4/arch/i386/kernel/p4-clockmod.c =================================================================== RCS file: /build/cvsroot/linux-2.4.20-rc1-ac4/arch/i386/kernel/p4-clockmod.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 p4-clockmod.c --- linux-2.4.20-rc1-ac4/arch/i386/kernel/p4-clockmod.c 18 Nov 2002 01:39:49 -0000 1.1.1.1 +++ linux-2.4.20-rc1-ac4/arch/i386/kernel/p4-clockmod.c 22 Nov 2002 06:12:11 -0000 @@ -209,7 +209,7 @@ if (number_states) return; - policy->max = (stock_freq / 8) * (((unsigned int) ((policy->max * 8) / stock_freq)) + 1); + policy->max = ((stock_freq / 8) * (((unsigned int) ((policy->max * 80) / stock_freq)))/10); return; } > On the other hand, some short (<1 min) cpu-bound processes for benchmarking > each took the same amount of time to run when the clock was at 12%, 100%, > and 112%, so I'm not sure the clock was really being changed at all. I can look into that. -- function.linuxpower.ca - 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/