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)
commit2259a819a8d37e472f08c88bc0dd22194754adb4
tree2cb425544ec2a864e0522e7e571a7f705bb5b7c0
parentca42489d9ee3262482717c83428e087322fdc39c
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