Messages in this thread | | | Date | Tue, 15 Jul 2014 10:05:19 +0530 | Subject | Re: [PATCH v2] cpufreq: Don't destroy/realloc policy/sysfs on hotplug/suspend | From | Viresh Kumar <> |
| |
On 15 July 2014 00:38, Saravana Kannan <skannan@codeaurora.org> wrote: > Yeah, it definitely crashes if policy->cpu if an offline cpu. Because the > mutex would be uninitialized if it's stopped after boot or it would never > have been initialized (depending on how you fix policy->cpu at boot). > > Look at this snippet on the actual tree and it should be pretty evident.
Yeah, I missed it. So the problem is we initialize timer_mutex's for policy->cpus. So we need to do that just for policy->cpu and also we don't need a per-cpu timer_mutex anymore.
| |