diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-10-23 10:11:52 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-10-23 10:11:52 +0100 |
commit | 2220131142f3de7946d0c27c80d5d42c6cee3fa2 (patch) | |
tree | f9f916a44e5df8e7589fe59b60dedd4bc1384b26 /xen/drivers/cpufreq | |
parent | 5856aed296ceccce3f718604e117f28e21ec1418 (diff) | |
download | xen-2220131142f3de7946d0c27c80d5d42c6cee3fa2.tar.gz xen-2220131142f3de7946d0c27c80d5d42c6cee3fa2.tar.bz2 xen-2220131142f3de7946d0c27c80d5d42c6cee3fa2.zip |
x86: Fix RevF detection in powernow.c
The PowerNow! driver does not support RevF and earlier parts.
The current code checks for RevF processors in a function that
is not called. Change the code path so that RevF processors
are detected and the driver fails registration.
Also fix cpufreq_add_cpu() to handle unsuccessful registration.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
Diffstat (limited to 'xen/drivers/cpufreq')
-rw-r--r-- | xen/drivers/cpufreq/cpufreq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/drivers/cpufreq/cpufreq.c b/xen/drivers/cpufreq/cpufreq.c index 39cc7eba61..7ef193a987 100644 --- a/xen/drivers/cpufreq/cpufreq.c +++ b/xen/drivers/cpufreq/cpufreq.c @@ -143,6 +143,9 @@ int cpufreq_add_cpu(unsigned int cpu) !cpu_online(cpu)) return -EINVAL; + if (!cpufreq_driver) + return 0; + if (cpufreq_cpu_policy[cpu]) return 0; |