[CPUFREQ] Fix on resume, now preserves user policy min/max.
authorMike Chan <mike@android.com>
Thu, 4 Dec 2008 20:19:17 +0000 (12:19 -0800)
committerDave Jones <davej@redhat.com>
Fri, 5 Dec 2008 20:20:11 +0000 (15:20 -0500)
commit187d9f4ed4fc089f1f25a875fb485e27626972f9
tree321746d8966250b00698361dfc1cadeec8d0560f
parent8529154ec3f3ac20344c65b7a040c604c7af7651
[CPUFREQ] Fix on resume, now preserves user policy min/max.

Previously driver resume would always set the current policy min/max with
the cpuinfo min/max, defined by user_policy.min/max. Resulting in a reset
of policy settings when policy.min/max != cpuinfo.min/max when coming out
of suspend. Now user_policy is saved as the policy instead of cpuinfo to
preserve what the user actually set.

Signed-off-by: Mike Chan <mike@android.com>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c