Commit a6a0c4ca authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds

suspend: use WARN not WARN_ON to print the message

By using WARN(), kerneloops.org can collect which component is causing
the delay and make statistics about that. suspend_test_finish() is
currently the number 2 item but unless we can collect who's causing
it we're not going to be able to fix the hot topic ones..
Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 72b51a6b
...@@ -174,7 +174,7 @@ static void suspend_test_finish(const char *label) ...@@ -174,7 +174,7 @@ static void suspend_test_finish(const char *label)
* has some performance issues. The stack dump of a WARN_ON * has some performance issues. The stack dump of a WARN_ON
* is more likely to get the right attention than a printk... * is more likely to get the right attention than a printk...
*/ */
WARN_ON(msec > (TEST_SUSPEND_SECONDS * 1000)); WARN(msec > (TEST_SUSPEND_SECONDS * 1000), "Component: %s\n", label);
} }
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment