watchdog: introduce the hardlockup_detector_disable() function
Have kvm_guest_init() use hardlockup_detector_disable() instead of watchdog_enable_hardlockup_detector(false). Remove the watchdog_hardlockup_detector_is_enabled() and the watchdog_enable_hardlockup_detector() function which are no longer needed. Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com> Signed-off-by: Don Zickus <dzickus@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b2f57c3a0d
commit
692297d8f9
3 changed files with 5 additions and 27 deletions
|
|
@ -25,16 +25,11 @@ static inline void touch_nmi_watchdog(void)
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_HARDLOCKUP_DETECTOR)
|
||||
extern void watchdog_enable_hardlockup_detector(bool val);
|
||||
extern bool watchdog_hardlockup_detector_is_enabled(void);
|
||||
extern void hardlockup_detector_disable(void);
|
||||
#else
|
||||
static inline void watchdog_enable_hardlockup_detector(bool val)
|
||||
static inline void hardlockup_detector_disable(void)
|
||||
{
|
||||
}
|
||||
static inline bool watchdog_hardlockup_detector_is_enabled(void)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue