]> git.hungrycats.org Git - linux/commitdiff
Revert "cpufreq: fix garbage kobjects on errors during suspend/resume"
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 8 Dec 2013 00:23:58 +0000 (01:23 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 10 Apr 2017 13:09:49 +0000 (15:09 +0200)
commit d4faadd5d5b368a7051fef374ee933ec3606713b upstream.

Commit 2167e2399dc5 (cpufreq: fix garbage kobjects on errors during
suspend/resume) breaks suspend/resume on Martin Ziegler's system
(hard lockup during resume), so revert it.

Fixes: 2167e2399dc5 (cpufreq: fix garbage kobjects on errors during suspend/resume)
References: https://bugzilla.kernel.org/show_bug.cgi?id=66751
Reported-by: Martin Ziegler <ziegler@uni-freiburg.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/cpufreq/cpufreq.c

index ac6ed021f2de1e767ef802bfcdc9b7ce18a9024c..776bdefb55173216c8f3b28cdfb5cf0af73a4b0e 100644 (file)
@@ -2072,6 +2072,9 @@ static int cpufreq_cpu_callback(struct notifier_block *nfb,
        dev = get_cpu_device(cpu);
        if (dev) {
 
+               if (action & CPU_TASKS_FROZEN)
+                       frozen = true;
+
                switch (action & ~CPU_TASKS_FROZEN) {
                case CPU_ONLINE:
                        __cpufreq_add_dev(dev, NULL, frozen);