From: Wu Zhangjin <wuzhangjin@xxxxxxxxx> Use the new unreachable() macro instead of while(1); Signed-off-by: Wu Zhangjin <wuzhangjin@xxxxxxxxx> --- arch/mips/loongson/common/reset.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/mips/loongson/common/reset.c b/arch/mips/loongson/common/reset.c index d57f171..5833f9f 100644 --- a/arch/mips/loongson/common/reset.c +++ b/arch/mips/loongson/common/reset.c @@ -6,7 +6,7 @@ * * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@xxxxxxxxxx - * Copyright (C) 2009 Lemote, Inc. & Institute of Computing Technology + * Copyright (C) 2009 Lemote, Inc. * Author: Zhangjin Wu, wuzj@xxxxxxxxxx */ #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) -- 1.6.5.6