9
0
Fork 0

CONFIG_PANIC_HANG: replace #ifdef with IS_ENABLED()

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Antony Pavlov 2013-08-04 12:46:02 +04:00 committed by Sascha Hauer
parent e3399d713f
commit 6dd233f435
1 changed files with 6 additions and 6 deletions

View File

@ -630,11 +630,11 @@ void __noreturn panic(const char *fmt, ...)
led_trigger(LED_TRIGGER_PANIC, TRIGGER_ENABLE);
#if defined (CONFIG_PANIC_HANG)
hang();
#else
udelay(100000); /* allow messages to go out */
reset_cpu(0);
#endif
if (IS_ENABLED(CONFIG_PANIC_HANG)) {
hang();
} else {
udelay(100000); /* allow messages to go out */
reset_cpu(0);
}
}
EXPORT_SYMBOL(panic);