]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Add suspend method to cpufreq core
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 29 Apr 2005 14:40:12 +0000 (07:40 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 29 Apr 2005 14:40:12 +0000 (07:40 -0700)
commitad7c85ef4a6b529928fc638ad609bf0efb75946f
treec5b67100cde9769c56f6872a5675d67f0e5f0df5
parentcaab97e6344fb55331af4de413a0bd12a6eb3c80
[PATCH] Add suspend method to cpufreq core

In order to properly fix some issues with cpufreq vs. sleep on
PowerBooks, I had to add a suspend callback to the pmac_cpufreq driver.
I must force a switch to full speed before sleep and I switch back to
previous speed on resume.

I also added a driver flag to disable the warnings in suspend/resume
since it is expected in this case to have different speed (and I want it
to fixup the jiffies properly).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h