[PATCH] consolidate CONFIG_WATCHDOG_NOWAYOUT handling
Attached patch removes #ifdef CONFIG_WATCHDOG_NOWAYOUT mess duplicated in almost every watchdog driver and replaces it with common define in linux/watchdog.h. Signed-off-by: Andrey Panin <pazke@donpac.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
7657e20e46
commit
4bfdf37830
@@ -47,4 +47,14 @@ struct watchdog_info {
|
||||
#define WDIOS_ENABLECARD 0x0002 /* Turn on the watchdog timer */
|
||||
#define WDIOS_TEMPPANIC 0x0004 /* Kernel panic on temperature trip */
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
#ifdef CONFIG_WATCHDOG_NOWAYOUT
|
||||
#define WATCHDOG_NOWAYOUT 1
|
||||
#else
|
||||
#define WATCHDOG_NOWAYOUT 0
|
||||
#endif
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
#endif /* ifndef _LINUX_WATCHDOG_H */
|
||||
|
Reference in New Issue
Block a user