Message ID | CAKohpon-2rO7Rkr9juNXO+cOswoWmqiKHnnTr3aprW2y_Noh_w@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 30 January 2015 at 07:14, ethan zhao <ethan.zhao@oracle.com> wrote:
> Please take a look at the code I composed, I thought of it whole night.
Santosh has already tested my patch and it worked for him. And that is
the right solution I believe.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 4473eba1d6b0..5ced9cca4822 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1411,6 +1411,7 @@ static int __cpufreq_remove_dev_finish(struct device *dev, read_lock_irqsave(&cpufreq_driver_lock, flags); policy = per_cpu(cpufreq_cpu_data, cpu); + per_cpu(cpufreq_cpu_data, cpu) = NULL; read_unlock_irqrestore(&cpufreq_driver_lock, flags); if (!policy) { @@ -1466,7 +1467,6 @@ static int __cpufreq_remove_dev_finish(struct device *dev, } } - per_cpu(cpufreq_cpu_data, cpu) = NULL; return 0; } -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in