From: Russell King Date: Tue, 28 Oct 2014 13:32:35 +0000 (+0000) Subject: ARM: use pr_warn_ratelimited() when migrating IRQs X-Git-Tag: v3.19-rc1~98^2~1^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=108900b54dce19aab3fa48adde7138ed868bb109;p=platform%2Fkernel%2Flinux-exynos.git ARM: use pr_warn_ratelimited() when migrating IRQs Rather than open coding the printk_ratelimit() check with pr_warn(), use pr_warn_ratelimited() instead. Tested-by: Felipe Balbi Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index f2fea68..ad857bad 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -135,7 +136,6 @@ int __init arch_probe_nr_irqs(void) #endif #ifdef CONFIG_HOTPLUG_CPU - static bool migrate_one_irq(struct irq_desc *desc) { struct irq_data *d = irq_desc_get_irq_data(desc); @@ -187,8 +187,8 @@ void migrate_irqs(void) affinity_broken = migrate_one_irq(desc); raw_spin_unlock(&desc->lock); - if (affinity_broken && printk_ratelimit()) - pr_warn("IRQ%u no longer affine to CPU%u\n", + if (affinity_broken) + pr_warn_ratelimited("IRQ%u no longer affine to CPU%u\n", i, smp_processor_id()); }