]> git.baikalelectronics.ru Git - kernel.git/commit
intel_pstate: Use del_timer_sync in intel_pstate_cpu_stop
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Mon, 24 Mar 2014 14:41:29 +0000 (07:41 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 26 Mar 2014 15:39:53 +0000 (16:39 +0100)
commit1c932add794f69724f00eb1b35d25da8caf9c636
treebb4dd6b553bfb750e59c67373ea2907e9830c52d
parentc9d0374599f7b49222994fb037c3e4319c89f247
intel_pstate: Use del_timer_sync in intel_pstate_cpu_stop

Ensure that no timer callback is running since we are about to free
the timer structure.  We cannot guarantee that the call back is called
on the CPU where the timer is running.

Reported-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c