diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2013-10-11 20:39:26 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-11-06 02:49:02 -0500 |
commit | 8b414521bc5375ae8ba18c083af95d44b8da0d04 (patch) | |
tree | dd45ba45e6c397081c838b4dd80e42bc3752ad4f /include/linux/sched.h | |
parent | d63285e94af3ade4fa8b10b0d9a22bcf72baf2f9 (diff) |
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) | |||
285 | } | 285 | } |
286 | #endif | 286 | #endif |
287 | 287 | ||
288 | #ifdef CONFIG_DETECT_HUNG_TASK | ||
289 | void reset_hung_task_detector(void); | ||
290 | #else | ||
291 | static inline void reset_hung_task_detector(void) | ||
292 | { | ||
293 | } | ||
294 | #endif | ||
295 | |||
288 | /* Attach to any functions which should be ignored in wchan output. */ | 296 | /* Attach to any functions which should be ignored in wchan output. */ |
289 | #define __sched __attribute__((__section__(".sched.text"))) | 297 | #define __sched __attribute__((__section__(".sched.text"))) |
290 | 298 | ||