]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 3 Nov 2016 17:25:48 +0000 (10:25 -0700)
commiteb2356e896f2ba46bc7dc48a17a357f0cafd860d
tree97f416d23eb0198c4ffbfda9ed8bff0f254bd51a
parent71971d38f7a59bf4b88bb71995b95305baed94de
intel_idle: Setup the timer broadcast only on successful driver load.

Orabug: 24810432

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>
(cherry picked from commit 2259a819a8d37e472f08c88bc0dd22194754adb4)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/idle/intel_idle.c