提交 c805b730 编写于 作者: C Cyrill Gorcunov 提交者: Ingo Molnar

x86: mach-default setup.c cleanups

Impact: cleanup

- Break long lines into shorter form.
- Use pr_ macros instead of plain printk.
Signed-off-by: NCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 75329f1f
...@@ -133,29 +133,28 @@ void __init time_init_hook(void) ...@@ -133,29 +133,28 @@ void __init time_init_hook(void)
**/ **/
void mca_nmi_hook(void) void mca_nmi_hook(void)
{ {
/* If I recall correctly, there's a whole bunch of other things that /*
* If I recall correctly, there's a whole bunch of other things that
* we can do to check for NMI problems, but that's all I know about * we can do to check for NMI problems, but that's all I know about
* at the moment. * at the moment.
*/ */
pr_warning("NMI generated from unknown source!\n");
printk("NMI generated from unknown source!\n");
} }
#endif #endif
static __init int no_ipi_broadcast(char *str) static __init int no_ipi_broadcast(char *str)
{ {
get_option(&str, &no_broadcast); get_option(&str, &no_broadcast);
printk ("Using %s mode\n", no_broadcast ? "No IPI Broadcast" : pr_info("Using %s mode\n",
"IPI Broadcast"); no_broadcast ? "No IPI Broadcast" : "IPI Broadcast");
return 1; return 1;
} }
__setup("no_ipi_broadcast=", no_ipi_broadcast); __setup("no_ipi_broadcast=", no_ipi_broadcast);
static int __init print_ipi_mode(void) static int __init print_ipi_mode(void)
{ {
printk ("Using IPI %s mode\n", no_broadcast ? "No-Shortcut" : pr_info("Using IPI %s mode\n",
"Shortcut"); no_broadcast ? "No-Shortcut" : "Shortcut");
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册