Skip to content

Commit

Permalink
MIPS: Loongson: Convert loongson_halt() to use unreachable()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Feb 27, 2010
1 parent c70798f commit 6f32096
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/mips/loongson/common/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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)
Expand Down

0 comments on commit 6f32096

Please sign in to comment.