From: 黄涛 Date: Thu, 24 Apr 2014 10:59:46 +0000 (+0800) Subject: Revert "Power: Add guard condition for maximum wakeup reasons" X-Git-Tag: firefly_0821_release~5437 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=840cd4829864699a92dd45c707c8c1c8ba2e7748;p=firefly-linux-kernel-4.4.55.git Revert "Power: Add guard condition for maximum wakeup reasons" This reverts commit 77b1737fd63db149914c09117874cde8abac7f04. --- diff --git a/kernel/power/wakeup_reason.c b/kernel/power/wakeup_reason.c index caf44213b14c..82e69fe52d0b 100644 --- a/kernel/power/wakeup_reason.c +++ b/kernel/power/wakeup_reason.c @@ -79,13 +79,6 @@ void log_wakeup_reason(int irq) printk(KERN_INFO "Resume caused by IRQ %d\n", irq); spin_lock(&resume_reason_lock); - if (irq_count == MAX_WAKEUP_REASON_IRQS) { - spin_unlock(&resume_reason_lock); - printk(KERN_WARNING "Resume caused by more than %d IRQs\n", - MAX_WAKEUP_REASON_IRQS); - return; - } - irq_list[irq_count++] = irq; spin_unlock(&resume_reason_lock); }