freezer: comment out might_sleep()

Currently on ARM signal handling here must happen with
interrupts disabled so this might_sleep will cause a
continuous stream of warnings. It is a known issue
upstream.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
(cherry picked from commit dc0eed4422dad92d3dd5afd468876d3d5b241ce1)
This commit is contained in:
Steve Muckle
2012-05-23 08:49:36 -07:00
committed by Stephen Boyd
parent 2bfed520ac
commit 6cdb09deef

View File

@@ -43,7 +43,10 @@ extern void thaw_kernel_threads(void);
static inline bool try_to_freeze(void) static inline bool try_to_freeze(void)
{ {
might_sleep(); /* This causes problems for ARM targets and is a known
* problem upstream.
* might_sleep();
*/
if (likely(!freezing(current))) if (likely(!freezing(current)))
return false; return false;
return __refrigerator(false); return __refrigerator(false);