From: Hiroshi Miura Subject: [PATCH]gx-suspmod: fix to return proper value when reading /sys/.../cpuinfo_cur_freq Date: Mon, 03 Jan 2005 16:32:20 +0900 Message-ID: <87hdlzc6ij.wl%miura@da-cha.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - =?ISO-2022-JP?B?IhskQjRdGyhC?= =?ISO-2022-JP?B?GyRCMiwbKEIi?=) Content-Type: multipart/mixed; boundary="Multipart_Mon_Jan__3_16:32:20_2005-1" Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: cpufreq-bounces@www.linux.org.uk Errors-To: cpufreq-bounces+glkc-cpufreq=gmane.org@www.linux.org.uk To: davej@redhat.com Cc: cpufreq@www.linux.org.uk --Multipart_Mon_Jan__3_16:32:20_2005-1 Content-Type: text/plain; charset=US-ASCII This is a patch to fix to return proper value when reading /sys/.../cpuinfo_cur_freq with gx-suspmod driver for Cyrix MediaGX / AMD Geode CPUs. The patch is generated by bkexport script. Hiroshi Miura --- http://www.da-cha.org/ --- miura@da-cha.org NTTDATA Corp. OpenSource Software Center. --- miurahr@nttdata.co.jp NTTDATA Intellilink Corp. OpenSource Engineering Dev. -- miurahr@intellilink.co.jp Key fingerprint = 9117 9407 5684 FBF1 4063 15B4 401D D077 04AB 8617 --Multipart_Mon_Jan__3_16:32:20_2005-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="gx-suspmod-fix.diff" Content-Transfer-Encoding: 7bit #### AUTHOR miura@da-cha.org #### COMMENT START ### Comments for ChangeSet To fix to return a proper cpu speed on gx-suspmod CPUFreq driver when reading /sys/.../cpuinfo_cur_freq Signed-Off-by: Hiroshi Miura ### Comments for arch/i386/kernel/cpu/cpufreq/gx-suspmod.c fix to return a proper cpu speed. it is caused by mistaking on and off meaning. #### COMMENT END # This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2005/01/03 16:23:37+09:00 miura@da-cha.org # To fix to return a proper cpu speed on gx-suspmod CPUFreq driver. # # Signed-Off-by: Hiroshi Miura # # arch/i386/kernel/cpu/cpufreq/gx-suspmod.c # 2005/01/03 16:23:26+09:00 miura@da-cha.org +1 -1 # fix to return a proper cpu speed. it is caused by mistaking on and off meaning. # diff -Nru a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c --- a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c 2005-01-03 16:25:46 +09:00 +++ b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c 2005-01-03 16:25:46 +09:00 @@ -219,7 +219,7 @@ if ((gx_params->pci_suscfg & SUSMOD) == 0) return stock_freq; - return (stock_freq * gx_params->on_duration) + return (stock_freq * gx_params->off_duration) / (gx_params->on_duration + gx_params->off_duration); } --Multipart_Mon_Jan__3_16:32:20_2005-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Cpufreq mailing list Cpufreq@www.linux.org.uk http://www.linux.org.uk/mailman/listinfo/cpufreq --Multipart_Mon_Jan__3_16:32:20_2005-1--