summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorAntti P Miettinen <amiettinen@nvidia.com>2012-01-05 02:13:23 +0200
committerVarun Colbert <vcolbert@nvidia.com>2012-01-19 16:16:55 -0800
commitfefa2b7c8b1ffbaba240b92f8b88cf8f5475d88d (patch)
tree3be63dd66b212451e578c27f83b2c803f082de18 /drivers/cpufreq
parent342b5ef42288e6b48528a746aeb35b8b0ca22e1a (diff)
cpufreq: Preserve sysfs min/max request
Store the value received via sysfs as the user_policy min/max value instead of the currently enforced min/max. This allows restoring the user min/max values when constraints on enforced min/max change. Bug 888312 Change-Id: I8a5adf022585e5bd91fa3b1d8d448065efa6827a Reviewed-on: http://git-master/r/73982 Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/75886 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 65fba49d3f07..698bf4aee6f8 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -390,7 +390,7 @@ static ssize_t store_##file_name \
return -EINVAL; \
\
ret = __cpufreq_set_policy(policy, &new_policy); \
- policy->user_policy.object = policy->object; \
+ policy->user_policy.object = new_policy.object; \
\
return ret ? ret : count; \
}