]> www.infradead.org Git - users/jedix/linux-maple.git/commit
intel_idle: Clean up all registered devices on exit.
authorRichard Cochran <rcochran@linutronix.de>
Wed, 6 Apr 2016 21:00:57 +0000 (17:00 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 3 Nov 2016 17:25:57 +0000 (10:25 -0700)
commitec0690956fec06c6b677fed9b5fc7a32d020eddf
tree49df1669f8cf099f6e1a143eb967e1d2a7197890
parent0b334207e6991fc46d049ce1df226218a2e734dc
intel_idle: Clean up all registered devices on exit.

Orabug: 24810432

This driver registers cpuidle devices when a CPU comes online, but it
leaves the registrations in place when a CPU goes offline.  The module
exit code only unregisters the currently online CPUs, leaving the
devices for offline CPUs dangling.

This patch changes the driver to clean up all registrations on exit,
even those from CPUs that are offline.

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 3e66a9ab53641a0f7a440e56f7b35bf5d77494b3)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/idle/intel_idle.c