[PATCH] ppc32: Fix might_sleep() warning with clock spreading
The clock spreading disable/enable code was called to late/early during the suspend/resume code on some laptops and would trigger a might_sleep() warning due to the down() call in the low level i2c code. This fixes it by calling those functions earlier/later when interrupts are still enabled. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
6995f17a5a
commit
e521dca64e
@@ -316,6 +316,9 @@ extern void pmac_register_agp_pm(struct pci_dev *bridge,
|
||||
extern void pmac_suspend_agp_for_card(struct pci_dev *dev);
|
||||
extern void pmac_resume_agp_for_card(struct pci_dev *dev);
|
||||
|
||||
/* Used by the via-pmu driver for suspend/resume
|
||||
*/
|
||||
extern void pmac_tweak_clock_spreading(int enable);
|
||||
|
||||
/*
|
||||
* The part below is for use by macio_asic.c only, do not rely
|
||||
|
||||
Reference in New Issue
Block a user