Module: xenomai-2.5 Branch: master Commit: 25fce06b0d9e2e824207eaa52fe0e9e3614578db URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=25fce06b0d9e2e824207eaa52fe0e9e3614578db
Author: Jan Kiszka <[email protected]> Date: Fri Aug 20 14:53:00 2010 +0200 nucleus: 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 fc3af64..d3e0788 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
