提交 6f320965 编写于 作者: W Wu Zhangjin 提交者: Ralf Baechle

MIPS: Loongson: Convert loongson_halt() to use unreachable()

Use the new unreachable() macro instead of while(1);
Signed-off-by: NWu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: yanh@lemote.com
Cc: huhb@lemote.com
Cc: zhangfx@lemote.com
Patchwork: http://patchwork.linux-mips.org/patch/823/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 c70798f1
......@@ -6,7 +6,7 @@
*
* Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
* Author: Fuxin Zhang, zhangfx@lemote.com
* Copyright (C) 2009 Lemote, Inc. & Institute of Computing Technology
* Copyright (C) 2009 Lemote, Inc.
* Author: Zhangjin Wu, wuzj@lemote.com
*/
#include <linux/init.h>
......@@ -28,8 +28,7 @@ static void loongson_restart(char *command)
static void loongson_halt(void)
{
mach_prepare_shutdown();
while (1)
;
unreachable();
}
static int __init mips_reboot_setup(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册