Re: [PATCH] intel_pstate: fix race condition in intel_pstate_init()

2014-02-10 Thread Dirk Brandewie
On 02/09/2014 01:48 AM, Maurizio Lombardi wrote: There is a race condition in the intel pstate driver initialization: the cpufreq_register_driver() function creates a timer that makes use of the energy_divisor variable (intel_pstate_timer_func), the problem is that energy_divisor is initialized

[PATCH] intel_pstate: fix race condition in intel_pstate_init()

2014-02-09 Thread Maurizio Lombardi
There is a race condition in the intel pstate driver initialization: the cpufreq_register_driver() function creates a timer that makes use of the energy_divisor variable (intel_pstate_timer_func), the problem is that energy_divisor is initialized *after* the call to cpufreq_register_driver(). Thi