]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc32: Fix might_sleep() warning with clock spreading
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 2 May 2005 06:12:00 +0000 (16:12 +1000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 2 May 2005 15:15:22 +0000 (08:15 -0700)
commit7cdc3f5fae4a6da2435526ca0f8a296a806aaca5
treec894a71c7d1a22e6c814f202532ec55616665adb
parentc68c7150fe5cd0e14dc8ecb9cc75be7833f39a0f
[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>
arch/ppc/platforms/pmac_feature.c
drivers/macintosh/via-pmu.c
include/asm-ppc/pmac_feature.h