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:
parent
e3399d713f
commit
6dd233f435
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue