Commit 108900b5 authored by Russell King's avatar Russell King

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: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 4ed89f22
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/ratelimit.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/kallsyms.h> #include <linux/kallsyms.h>
...@@ -135,7 +136,6 @@ int __init arch_probe_nr_irqs(void) ...@@ -135,7 +136,6 @@ int __init arch_probe_nr_irqs(void)
#endif #endif
#ifdef CONFIG_HOTPLUG_CPU #ifdef CONFIG_HOTPLUG_CPU
static bool migrate_one_irq(struct irq_desc *desc) static bool migrate_one_irq(struct irq_desc *desc)
{ {
struct irq_data *d = irq_desc_get_irq_data(desc); struct irq_data *d = irq_desc_get_irq_data(desc);
...@@ -187,8 +187,8 @@ void migrate_irqs(void) ...@@ -187,8 +187,8 @@ void migrate_irqs(void)
affinity_broken = migrate_one_irq(desc); affinity_broken = migrate_one_irq(desc);
raw_spin_unlock(&desc->lock); raw_spin_unlock(&desc->lock);
if (affinity_broken && printk_ratelimit()) if (affinity_broken)
pr_warn("IRQ%u no longer affine to CPU%u\n", pr_warn_ratelimited("IRQ%u no longer affine to CPU%u\n",
i, smp_processor_id()); i, smp_processor_id());
} }
......
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