diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2013-10-11 21:39:26 -0300 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-11-06 09:49:02 +0200 |
commit | 8b414521bc5375ae8ba18c083af95d44b8da0d04 (patch) | |
tree | dd45ba45e6c397081c838b4dd80e42bc3752ad4f /include/linux/sched.h | |
parent | d63285e94af3ade4fa8b10b0d9a22bcf72baf2f9 (diff) | |
download | lwn-8b414521bc5375ae8ba18c083af95d44b8da0d04.tar.gz lwn-8b414521bc5375ae8ba18c083af95d44b8da0d04.zip |
hung_task: add method to reset detector
In certain occasions it is possible for a hung task detector
positive to be false: continuation from a paused VM, for example.
Add a method to reset detection, similar as is done
with other kernel watchdogs.
Acked-by: Don Zickus <dzickus@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 6682da36b293..7bb4b4a2a101 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -285,6 +285,14 @@ static inline void lockup_detector_init(void) } #endif +#ifdef CONFIG_DETECT_HUNG_TASK +void reset_hung_task_detector(void); +#else +static inline void reset_hung_task_detector(void) +{ +} +#endif + /* Attach to any functions which should be ignored in wchan output. */ #define __sched __attribute__((__section__(".sched.text"))) |