From debadf24fd2f083bc53e4cdbd23321e737f77d64 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Thu, 18 Sep 2003 22:36:26 +0100 Subject: [PATCH] [CPUFREQ] Work around buggy powernow-k7 BIOSes with low settling times. --- arch/i386/kernel/cpu/cpufreq/powernow-k7.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k7.c b/arch/i386/kernel/cpu/cpufreq/powernow-k7.c index 5489af2f0cab9..8ea5acafe47f2 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k7.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k7.c @@ -299,6 +299,11 @@ static int powernow_decode_bios (int maxfid, int startvid) dprintk (" voltage regulator)\n"); latency = psb->settlingtime; + if (latency < 10000) { + printk (KERN_INFO PFX "BIOS set settling time to %d microseconds." + "Should be at least 10000. Correcting.\n", latency); + latency = 10000; + } dprintk (KERN_INFO PFX "Settling Time: %d microseconds.\n", psb->settlingtime); dprintk (KERN_INFO PFX "Has %d PST tables. (Only dumping ones relevant to this CPU).\n", psb->numpst); -- 2.53.0