/[linux-patches]/genpatches-2.6/trunk/2.6.14/2725_cpufreq-frequency-change.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/2725_cpufreq-frequency-change.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations) (download) (as text)
Tue Mar 14 13:34:17 2006 UTC (14 years, 8 months ago) by johnm
File MIME type: text/x-diff
File size: 1254 byte(s)
2.6.14-11, rebase against local tree
1 From: Thomas Renninger <trenn@suse.de>
2 Date: Thu, 26 Jan 2006 17:46:33 +0000 (+0100)
3 Subject: [CPUFREQ] _PPC frequency change issues
4 X-Git-Url: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=0961dd0d217d072df736d964f47c2b6600931e19
5
6 [CPUFREQ] _PPC frequency change issues
7
8 BIOS might change frequency behind our back when BIOS changes allowed
9 frequencies via _PPC. In this case cpufreq core got out of sync.
10 Ask driver for current freq and notify governors about a change
11
12 Signed-off-by: Thomas Renninger <trenn@suse.de>
13 Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
14 Signed-off-by: Dave Jones <davej@redhat.com>
15 ---
16
17 --- a/drivers/cpufreq/cpufreq.c
18 +++ b/drivers/cpufreq/cpufreq.c
19 @@ -1429,6 +1429,14 @@ int cpufreq_update_policy(unsigned int c
20 policy.policy = data->user_policy.policy;
21 policy.governor = data->user_policy.governor;
22
23 + /* BIOS might change freq behind our back
24 + -> ask driver for current freq and notify governors about a change */
25 + if (cpufreq_driver->get) {
26 + policy.cur = cpufreq_driver->get(cpu);
27 + if (data->cur != policy.cur)
28 + cpufreq_out_of_sync(cpu, data->cur, policy.cur);
29 + }
30 +
31 ret = __cpufreq_set_policy(data, &policy);
32
33 mutex_unlock(&data->lock);

  ViewVC Help
Powered by ViewVC 1.1.20