projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c70798f
)
MIPS: Loongson: Convert loongson_halt() to use unreachable()
author
Wu Zhangjin
<
[email protected]
>
Mon, 4 Jan 2010 09:16:45 +0000
(17:16 +0800)
committer
Ralf Baechle
<
[email protected]
>
Sat, 27 Feb 2010 11:53:10 +0000
(12:53 +0100)
Use the new unreachable() macro instead of while(1);
Signed-off-by: Wu Zhangjin <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Patchwork: http://patchwork.linux-mips.org/patch/823/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/loongson/common/reset.c
patch
|
blob
|
history
diff --git
a/arch/mips/loongson/common/reset.c
b/arch/mips/loongson/common/reset.c
index d57f1719da959b669dc7810b121cb95a7cf2a112..5833f9fdfb79920d084de68adf24f33777efff1e 100644
(file)
--- 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,
[email protected]
- * Copyright (C) 2009 Lemote, Inc.
& Institute of Computing Technology
+ * Copyright (C) 2009 Lemote, Inc.
* Author: Zhangjin Wu,
[email protected]
*/
#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)