]> 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)
commit009c5b088bc3d0ebeb459206aae7867e91872d67
tree2cb425544ec2a864e0522e7e571a7f705bb5b7c0
parentb4d2ed418cefb50f7ef8adafef5f5171c5f4ea50
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