Commit 54f8dd3c authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Tony Luck

[IA64] use printk_once() unaligned.c/io_common.c

Use printk_once() in a couple of places.
Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent adcd7403
...@@ -60,7 +60,6 @@ dump (const char *str, void *vp, size_t len) ...@@ -60,7 +60,6 @@ dump (const char *str, void *vp, size_t len)
*/ */
int no_unaligned_warning; int no_unaligned_warning;
int unaligned_dump_stack; int unaligned_dump_stack;
static int noprint_warning;
/* /*
* For M-unit: * For M-unit:
...@@ -1357,9 +1356,8 @@ ia64_handle_unaligned (unsigned long ifa, struct pt_regs *regs) ...@@ -1357,9 +1356,8 @@ ia64_handle_unaligned (unsigned long ifa, struct pt_regs *regs)
/* watch for command names containing %s */ /* watch for command names containing %s */
printk(KERN_WARNING "%s", buf); printk(KERN_WARNING "%s", buf);
} else { } else {
if (no_unaligned_warning && !noprint_warning) { if (no_unaligned_warning) {
noprint_warning = 1; printk_once(KERN_WARNING "%s(%d) encountered an "
printk(KERN_WARNING "%s(%d) encountered an "
"unaligned exception which required\n" "unaligned exception which required\n"
"kernel assistance, which degrades " "kernel assistance, which degrades "
"the performance of the application.\n" "the performance of the application.\n"
......
...@@ -119,7 +119,6 @@ sn_pcidev_info_get(struct pci_dev *dev) ...@@ -119,7 +119,6 @@ sn_pcidev_info_get(struct pci_dev *dev)
* Additionally note that the struct sn_flush_device_war also has to be * Additionally note that the struct sn_flush_device_war also has to be
* removed from arch/ia64/sn/include/xtalk/hubdev.h * removed from arch/ia64/sn/include/xtalk/hubdev.h
*/ */
static u8 war_implemented = 0;
static s64 sn_device_fixup_war(u64 nasid, u64 widget, int device, static s64 sn_device_fixup_war(u64 nasid, u64 widget, int device,
struct sn_flush_device_common *common) struct sn_flush_device_common *common)
...@@ -128,11 +127,8 @@ static s64 sn_device_fixup_war(u64 nasid, u64 widget, int device, ...@@ -128,11 +127,8 @@ static s64 sn_device_fixup_war(u64 nasid, u64 widget, int device,
struct sn_flush_device_war *dev_entry; struct sn_flush_device_war *dev_entry;
struct ia64_sal_retval isrv = {0,0,0,0}; struct ia64_sal_retval isrv = {0,0,0,0};
if (!war_implemented) { printk_once(KERN_WARNING
printk(KERN_WARNING "PROM version < 4.50 -- implementing old " "PROM version < 4.50 -- implementing old PROM flush WAR\n");
"PROM flush WAR\n");
war_implemented = 1;
}
war_list = kzalloc(DEV_PER_WIDGET * sizeof(*war_list), GFP_KERNEL); war_list = kzalloc(DEV_PER_WIDGET * sizeof(*war_list), GFP_KERNEL);
BUG_ON(!war_list); BUG_ON(!war_list);
......
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