From: Rafael J. Wysocki Date: Sun, 8 Dec 2013 00:23:58 +0000 (+0100) Subject: Revert "cpufreq: fix garbage kobjects on errors during suspend/resume" X-Git-Tag: v3.12.73~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e060479eeca7cdcb3a4daeaa6a9fa094376d9dc8;p=thirdparty%2Fkernel%2Fstable.git Revert "cpufreq: fix garbage kobjects on errors during suspend/resume" 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 Signed-off-by: Rafael J. Wysocki Signed-off-by: Jiri Slaby --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index ac6ed021f2de1..776bdefb55173 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -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);