]> git.baikalelectronics.ru Git - kernel.git/commit
intel_idle: Setup the timer broadcast only on successful driver load.
authorRichard Cochran <rcochran@linutronix.de>
Wed, 6 Apr 2016 21:00:54 +0000 (17:00 -0400)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Apr 2016 20:10:58 +0000 (22:10 +0200)
commit49901de460fce43896b5396b75642801798a7713
tree2cb425544ec2a864e0522e7e571a7f705bb5b7c0
parenta2c3a121a2b2e6897d112579f0ca83d7775e0adf
intel_idle: Setup the timer broadcast only on successful driver load.

This driver sets the broadcast tick quite early on during probe and does
not clean up again in cast of failure.  This patch moves the setup call
after the registration, placing the on_each_cpu() calls within the global
CPU lock region.

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