]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: governor: Avoid irq_work_queue_on() crash on non-SMP ARM
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Feb 2016 21:15:34 +0000 (22:15 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:41:02 +0000 (14:41 +0100)
commit849a8b56e9c467bb3074524f19a52c606dcea0b8
treef15d75e070facc7c6b3169b1a0bd26a1bd5467fc
parentefd68eeee93c933bf68f95f27a2c0e7f1202aafd
cpufreq: governor: Avoid irq_work_queue_on() crash on non-SMP ARM

As it turns out, irq_work_queue_on() will crash if invoked on
non-SMP ARM platforms, but in fact it is not necessary to use that
function in the cpufreq governor code (as it doesn't matter to that
code which CPU will handle the irq_work), so change it to always use
irq_work_queue().

Fixes: 8fb47ff100af (cpufreq: governor: Replace timers with utilization update callbacks)
Reported-and-tested-by: Guenter Roeck <linux@roeck-us.net>
Reported-and-tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_governor.c