From: Benjamin Herrenschmidt Date: Mon, 2 May 2005 06:12:00 +0000 (+1000) Subject: [PATCH] ppc32: Fix might_sleep() warning with clock spreading X-Git-Tag: v2.6.12-rc4~136^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e521dca64e0f82d844928c5ee88d82fdced50cbe;p=pandora-kernel.git [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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed