]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 8 Dec 2013 00:32:41 +0000 (01:32 +0100)
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>
Cc: 3.12+ <stable@vger.kernel.org> # 3.12+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c

index b7c3b877da442fe681230da45acce60e2f7c7c19..02d534da22dda0bb22277c4f80f7c1d27f24cd65 100644 (file)
@@ -2076,6 +2076,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);