]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/base/core.c
cpufreq: Avoid cpufreq_suspend() deadlock on system shutdown
[mirror_ubuntu-bionic-kernel.git] / drivers / base / core.c
index a199e9cf2baed758c79a2b5e34c7226335246928..6a408cf38278574bc90f81490e0394387bfa8e16 100644 (file)
@@ -10,6 +10,7 @@
  *
  */
 
+#include <linux/cpufreq.h>
 #include <linux/device.h>
 #include <linux/err.h>
 #include <linux/fwnode.h>
@@ -2876,6 +2877,8 @@ void device_shutdown(void)
        wait_for_device_probe();
        device_block_probing();
 
+       cpufreq_suspend();
+
        spin_lock(&devices_kset->list_lock);
        /*
         * Walk the devices list backward, shutting down each in turn.