]> git.baikalelectronics.ru Git - kernel.git/commit
intel_idle: Don't overreact to a cpuidle registration failure.
authorRichard Cochran <rcochran@linutronix.de>
Wed, 6 Apr 2016 21:00:55 +0000 (17:00 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Apr 2016 20:11:00 +0000 (22:11 +0200)
commit65b6c9c43c9119db785aa5ddc6a61dc5cae0c770
treee540e242df7c442e7d7b6ccc92407eaa78b34d8b
parent49901de460fce43896b5396b75642801798a7713
intel_idle: Don't overreact to a cpuidle registration failure.

The helper function, intel_idle_cpu_init, registers one new device
with the cpuidle layer.  If the registration should fail, that
function immediately calls intel_idle_cpuidle_devices_uninit() to
unregister every last CPU's device.  However, it makes no sense to do
so, when called from the hot plug notifier callback.

This patch moves the call to intel_idle_cpuidle_devices_uninit()
outside of the helper function to the one call site that actually
needs to perform the de-registrations.

Signed-off-by: Richard Cochran <rcochran@linutronix.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/idle/intel_idle.c