CHROMIUM: timer: add debug_msleep warnings for long sleeps
authorOlof Johansson <olofj@chromium.org>
Tue, 7 Aug 2012 18:31:32 +0000 (11:31 -0700)
committerGerrit <chrome-bot@google.com>
Tue, 7 Aug 2012 19:32:21 +0000 (12:32 -0700)
commit3e84c18a26d97eb8650f1ea7bfa95632ec62715a
tree33c77d2f1689f2a66e27e30eb691f39feb45419a
parent452503abe0b89fc136a1847f3b5da1e42213bd66
CHROMIUM: timer: add debug_msleep warnings for long sleeps

I've carried a local patch to WARN_ON() long sleeps in the past, but
I think it makes sense to just check in a slightly cleaned up version
(i.e. this) that allows boot-time selection of the level to warn for.

BUG=none
TEST=edit config.txt, add timer.debug_msleep=100, boot, watch it pop a
 few times in dmesg.

Change-Id: Ibb79dfc1dd7a08b12a14af314c593a985603f5a6
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/29424
Reviewed-by: Sameer Nanda <snanda@chromium.org>
kernel/timer.c