aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2010-01-04 04:16:45 -0500
committerRalf Baechle <ralf@linux-mips.org>2010-02-27 06:53:10 -0500
commit6f3209659833e3ed653840d19b2f624f6db07823 (patch)
tree811e4d3a76a448c33ced0a153ef94c01b85ea411 /arch/mips/loongson
parentc70798f132818eaa79c48a08d0f19a7d61db8822 (diff)
MIPS: Loongson: Convert loongson_halt() to use unreachable()
Use the new unreachable() macro instead of while(1); Signed-off-by: Wu 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: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/loongson')
-rw-r--r--arch/mips/loongson/common/reset.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/loongson/common/reset.c b/arch/mips/loongson/common/reset.c
index d57f1719da95..5833f9fdfb79 100644
--- a/arch/mips/loongson/common/reset.c
+++ b/arch/mips/loongson/common/reset.c
@@ -6,7 +6,7 @@
6 * 6 *
7 * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology 7 * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
8 * Author: Fuxin Zhang, zhangfx@lemote.com 8 * Author: Fuxin Zhang, zhangfx@lemote.com
9 * Copyright (C) 2009 Lemote, Inc. & Institute of Computing Technology 9 * Copyright (C) 2009 Lemote, Inc.
10 * Author: Zhangjin Wu, wuzj@lemote.com 10 * Author: Zhangjin Wu, wuzj@lemote.com
11 */ 11 */
12#include <linux/init.h> 12#include <linux/init.h>
@@ -28,8 +28,7 @@ static void loongson_restart(char *command)
28static void loongson_halt(void) 28static void loongson_halt(void)
29{ 29{
30 mach_prepare_shutdown(); 30 mach_prepare_shutdown();
31 while (1) 31 unreachable();
32 ;
33} 32}
34 33
35static int __init mips_reboot_setup(void) 34static int __init mips_reboot_setup(void)