PM: Replace WARN_ON on timeout with one line print

Change-Id: Ia8b32b8ee225b7b62a327fecb10e9284ee4116df
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt 2015-05-07 16:36:41 -07:00 committed by Artem Borisov
parent 124acbcfe3
commit 9ff16b88b8

View file

@ -506,7 +506,8 @@ const struct list_head* get_wakeup_reasons(unsigned long timeout,
unsigned long signalled = 0;
if (timeout)
signalled = wait_for_completion_timeout(&wakeups_completion, timeout);
if (WARN_ON(!signalled)) {
if (!signalled) {
pr_warn("%s: completion timeout\n", __func__);
stop_logging_wakeup_reasons();
walk_irq_node_tree(base_irq_nodes, build_unfinished_nodes, unfinished);
return NULL;