diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-06-30 02:10:06 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-30 02:10:06 -0400 |
commit | 9ab3a15d95809a5d4feecda58b3749c53590e1b2 (patch) | |
tree | d355ffe46663b8fe52548a2109509ec206875da1 /arch | |
parent | 7b61ca5d94baf2c31971871fa875750f90fce098 (diff) |
sh: use printk_ratelimited instead of printk_ratelimit
Follows the powerpc change, for much the same rationale.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/irq.c | 6 | ||||
-rw-r--r-- | arch/sh/mm/alignment.c | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/arch/sh/kernel/irq.c b/arch/sh/kernel/irq.c index 91971103b62b..a3ee91971129 100644 --- a/arch/sh/kernel/irq.c +++ b/arch/sh/kernel/irq.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/seq_file.h> | 13 | #include <linux/seq_file.h> |
14 | #include <linux/ftrace.h> | 14 | #include <linux/ftrace.h> |
15 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | #include <linux/ratelimit.h> | ||
16 | #include <asm/processor.h> | 17 | #include <asm/processor.h> |
17 | #include <asm/machvec.h> | 18 | #include <asm/machvec.h> |
18 | #include <asm/uaccess.h> | 19 | #include <asm/uaccess.h> |
@@ -268,9 +269,8 @@ void migrate_irqs(void) | |||
268 | unsigned int newcpu = cpumask_any_and(data->affinity, | 269 | unsigned int newcpu = cpumask_any_and(data->affinity, |
269 | cpu_online_mask); | 270 | cpu_online_mask); |
270 | if (newcpu >= nr_cpu_ids) { | 271 | if (newcpu >= nr_cpu_ids) { |
271 | if (printk_ratelimit()) | 272 | pr_info_ratelimited("IRQ%u no longer affine to CPU%u\n", |
272 | printk(KERN_INFO "IRQ%u no longer affine to CPU%u\n", | 273 | irq, cpu); |
273 | irq, cpu); | ||
274 | 274 | ||
275 | cpumask_setall(data->affinity); | 275 | cpumask_setall(data->affinity); |
276 | newcpu = cpumask_any_and(data->affinity, | 276 | newcpu = cpumask_any_and(data->affinity, |
diff --git a/arch/sh/mm/alignment.c b/arch/sh/mm/alignment.c index b2595b8548ee..620fa7ff9eec 100644 --- a/arch/sh/mm/alignment.c +++ b/arch/sh/mm/alignment.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/seq_file.h> | 13 | #include <linux/seq_file.h> |
14 | #include <linux/proc_fs.h> | 14 | #include <linux/proc_fs.h> |
15 | #include <linux/uaccess.h> | 15 | #include <linux/uaccess.h> |
16 | #include <linux/ratelimit.h> | ||
16 | #include <asm/alignment.h> | 17 | #include <asm/alignment.h> |
17 | #include <asm/processor.h> | 18 | #include <asm/processor.h> |
18 | 19 | ||
@@ -95,13 +96,13 @@ int set_unalign_ctl(struct task_struct *tsk, unsigned int val) | |||
95 | void unaligned_fixups_notify(struct task_struct *tsk, insn_size_t insn, | 96 | void unaligned_fixups_notify(struct task_struct *tsk, insn_size_t insn, |
96 | struct pt_regs *regs) | 97 | struct pt_regs *regs) |
97 | { | 98 | { |
98 | if (user_mode(regs) && (se_usermode & UM_WARN) && printk_ratelimit()) | 99 | if (user_mode(regs) && (se_usermode & UM_WARN)) |
99 | pr_notice("Fixing up unaligned userspace access " | 100 | pr_notice_ratelimited("Fixing up unaligned userspace access " |
100 | "in \"%s\" pid=%d pc=0x%p ins=0x%04hx\n", | 101 | "in \"%s\" pid=%d pc=0x%p ins=0x%04hx\n", |
101 | tsk->comm, task_pid_nr(tsk), | 102 | tsk->comm, task_pid_nr(tsk), |
102 | (void *)instruction_pointer(regs), insn); | 103 | (void *)instruction_pointer(regs), insn); |
103 | else if (se_kernmode_warn && printk_ratelimit()) | 104 | else if (se_kernmode_warn) |
104 | pr_notice("Fixing up unaligned kernel access " | 105 | pr_notice_ratelimited("Fixing up unaligned kernel access " |
105 | "in \"%s\" pid=%d pc=0x%p ins=0x%04hx\n", | 106 | "in \"%s\" pid=%d pc=0x%p ins=0x%04hx\n", |
106 | tsk->comm, task_pid_nr(tsk), | 107 | tsk->comm, task_pid_nr(tsk), |
107 | (void *)instruction_pointer(regs), insn); | 108 | (void *)instruction_pointer(regs), insn); |