Re: [PATCH 3/5] cpufreq, dbs_data->usage count must be atomic

2014-11-10 Thread Viresh Kumar
On 5 November 2014 20:23, Prarit Bhargava wrote: > The usage_count value can be modified from several cpus concurrently if > !CPUFREQ_HAVE_GOVERNOR_PER_POLICY. This leads to a variety of panics in > which the usage_count is negative or exceeds the number of cpus in the > system. It must be switc

Re: [PATCH 3/5] cpufreq, dbs_data->usage count must be atomic

2014-11-07 Thread Rafael J. Wysocki
On Wednesday, November 05, 2014 09:53:57 AM Prarit Bhargava wrote: > The usage_count value can be modified from several cpus concurrently if > !CPUFREQ_HAVE_GOVERNOR_PER_POLICY. This leads to a variety of panics in > which the usage_count is negative or exceeds the number of cpus in the > system.

[PATCH 3/5] cpufreq, dbs_data->usage count must be atomic

2014-11-05 Thread Prarit Bhargava
The usage_count value can be modified from several cpus concurrently if !CPUFREQ_HAVE_GOVERNOR_PER_POLICY. This leads to a variety of panics in which the usage_count is negative or exceeds the number of cpus in the system. It must be switched to atomic_t and protected with a mutex to make sure th