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>
diff --git a/include/linux/freezer.h b/include/linux/freezer.h
index d09af4b..80e7fae 100644
--- a/include/linux/freezer.h
+++ b/include/linux/freezer.h
@@ -43,7 +43,10 @@
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)))
return false;
return __refrigerator(false);