]> git.baikalelectronics.ru Git - kernel.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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Apr 2016 20:11:05 +0000 (22:11 +0200)
commitd95df662067020d5f91b9805eb5f80971e9be054
treeee8c1d45d4691c4e45cd60302817c5b8933b3115
parentea665c97007e57a6243309db7883f54367420495
intel_idle: Clean up all registered devices on exit.

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>
drivers/idle/intel_idle.c