diff options
author | Jacob Shin <jacob.shin@amd.com> | 2013-07-02 08:47:00 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-07-02 08:47:00 +0200 |
commit | 6b104d91b81ac460a0a862f02c7cbeff82e14430 (patch) | |
tree | bcc611f2189fd5190729554a6a630ae9a7c264bf /xen/drivers | |
parent | ec7e270db8639db880573f029881b9bee31d33d9 (diff) | |
download | xen-6b104d91b81ac460a0a862f02c7cbeff82e14430.tar.gz xen-6b104d91b81ac460a0a862f02c7cbeff82e14430.tar.bz2 xen-6b104d91b81ac460a0a862f02c7cbeff82e14430.zip |
cpufreq, xenpm: fix cpufreq and xenpm mismatch
Currently cpufreq and xenpm are out of sync. Fix cpufreq reporting of
if turbo mode is enabled or not. Fix xenpm to not decode for tristate,
but a boolean.
Signed-off-by: Jacob Shin <jacob.shin@amd.com>
Diffstat (limited to 'xen/drivers')
-rw-r--r-- | xen/drivers/cpufreq/utility.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/drivers/cpufreq/utility.c b/xen/drivers/cpufreq/utility.c index 3dd70e2716..519f862182 100644 --- a/xen/drivers/cpufreq/utility.c +++ b/xen/drivers/cpufreq/utility.c @@ -428,7 +428,7 @@ int cpufreq_get_turbo_status(int cpuid) struct cpufreq_policy *policy; policy = per_cpu(cpufreq_cpu_policy, cpuid); - return policy && policy->turbo; + return policy && policy->turbo == CPUFREQ_TURBO_ENABLED; } /********************************************************************* |