Permalink
Browse files

HACK: quick extremely dirty hack to get rid of warning SPAM (INTERNAL)

This simply avoids getting a load of warnings like this when running
on OMAP:

[ 1568.144378] BUG: sleeping function called from invalid context at include/linux/freezer.h:46
[ 1568.144714] in_atomic(): 0, irqs_disabled(): 128, pid: 1615, name: ntpd
[ 1568.144714] INFO: lockdep is turned off.
[ 1568.144714] irq event stamp: 0
[ 1568.144714] hardirqs last  enabled at (0): [<  (null)>]   (null)
[ 1568.174133] hardirqs last disabled at (0): [<c00419c4>] copy_process+0x3ec/0x105c
[ 1568.174133] softirqs last  enabled at (0): [<c00419c4>] copy_process+0x3ec/0x105c
[ 1568.174133] softirqs last disabled at (0): [<  (null)>]   (null)
[ 1568.189880] [<c001e1e4>] (unwind_backtrace+0x0/0x148) from [<c0501afc>] (dump_stack+0x20/0x24)
[ 1568.205261] [<c0501afc>] (dump_stack+0x20/0x24) from [<c0077048>] (__might_sleep+0x130/0x134)
[ 1568.205261] [<c0077048>] (__might_sleep+0x130/0x134) from [<c0018998>] (do_signal+0x54/0x600)
[ 1568.223175] [<c0018998>] (do_signal+0x54/0x600) from [<c0018fa4>] (do_notify_resume+0x60/0x6c)
[ 1568.223175] [<c0018fa4>] (do_notify_resume+0x60/0x6c) from [<c00154e4>] (work_pending+0x24/0x28)

With this hack, it doesn't mean that your device will not crash to the
point of no return! Use it at your own risk.

Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information...
1 parent ca66580 commit 89afeefbb97f94b97f3de410420e54ac88a2d2a1 Luciano Coelho committed with ariknem Feb 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/linux/freezer.h
View
@@ -43,7 +43,7 @@ extern void thaw_kernel_threads(void);
static inline bool try_to_freeze(void)
{
- might_sleep();
+ /* might_sleep(); */
if (likely(!freezing(current)))
return false;
return __refrigerator(false);

0 comments on commit 89afeef

Please sign in to comment.