Module: xenomai-jki Branch: for-upstream Commit: df81cc2ffbb58bfa189b56393ecb174dc1f69244 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=df81cc2ffbb58bfa189b56393ecb174dc1f69244
Author: Jan Kiszka <[email protected]> Date: Fri Aug 20 14:53:00 2010 +0200 Create watchdog as non-blockable timer Otherwise traced Xenomai applications may prevent the watchdog from signaling/killing runaway RT threads, and the system may enter an unrecoverable state. Signed-off-by: Jan Kiszka <[email protected]> --- ksrc/nucleus/sched.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ksrc/nucleus/sched.c b/ksrc/nucleus/sched.c index 5242d9f..04a344e 100644 --- a/ksrc/nucleus/sched.c +++ b/ksrc/nucleus/sched.c @@ -175,7 +175,8 @@ void xnsched_init(struct xnsched *sched, int cpu) xnthread_name(&sched->rootcb)); #ifdef CONFIG_XENO_OPT_WATCHDOG - xntimer_init(&sched->wdtimer, &nktbase, xnsched_watchdog_handler); + xntimer_init_noblock(&sched->wdtimer, &nktbase, + xnsched_watchdog_handler); xntimer_set_name(&sched->wdtimer, "[watchdog]"); xntimer_set_priority(&sched->wdtimer, XNTIMER_LOPRIO); xntimer_set_sched(&sched->wdtimer, sched); _______________________________________________ Xenomai-git mailing list [email protected] https://mail.gna.org/listinfo/xenomai-git
