[cpufreq] ondemand: make shutdown sequence more robust
commit2cd7cbdf4bd0d0fe58e4dc903e8b413412595504
authorLinus Torvalds <torvalds@macmini.osdl.org>
Sun, 23 Jul 2006 19:05:00 +0000 (23 12:05 -0700)
committerLinus Torvalds <torvalds@macmini.osdl.org>
Sun, 23 Jul 2006 19:05:00 +0000 (23 12:05 -0700)
treead368b1f9a26d06be6e8bd26d821f17670ad2ef4
parent12157a8d78af50842774bedb80b7b84a87f60951
[cpufreq] ondemand: make shutdown sequence more robust

Shutting down the ondemand policy was fraught with potential
problems, causing issues for SMP suspend (which wants to hot-
unplug) all but the last CPU.

This should fix at least the worst problems (divide-by-zero
and infinite wait for the workqueue to shut down).

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cpufreq/cpufreq_ondemand.c