diff options
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 1f93dbd72355..de9951766dd8 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -970,6 +970,13 @@ static int cpufreq_add_dev(struct device *dev, struct subsys_interface *sif) | |||
970 | pr_debug("initialization failed\n"); | 970 | pr_debug("initialization failed\n"); |
971 | goto err_unlock_policy; | 971 | goto err_unlock_policy; |
972 | } | 972 | } |
973 | |||
974 | /* | ||
975 | * affected cpus must always be the one, which are online. We aren't | ||
976 | * managing offline cpus here. | ||
977 | */ | ||
978 | cpumask_and(policy->cpus, policy->cpus, cpu_online_mask); | ||
979 | |||
973 | policy->user_policy.min = policy->min; | 980 | policy->user_policy.min = policy->min; |
974 | policy->user_policy.max = policy->max; | 981 | policy->user_policy.max = policy->max; |
975 | 982 | ||