Module: xenomai-forge Branch: next Commit: c4e072e86dce2aab4941b9f19b9b4b7afe1f11ba URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=c4e072e86dce2aab4941b9f19b9b4b7afe1f11ba
Author: Philippe Gerum <r...@xenomai.org> Date: Fri May 24 16:16:46 2013 +0200 nucleus/timer: display locked timer state in /proc/xenomai/timer --- kernel/cobalt/nucleus/timer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/cobalt/nucleus/timer.c b/kernel/cobalt/nucleus/timer.c index bc7dcb0..cea7c5f 100644 --- a/kernel/cobalt/nucleus/timer.c +++ b/kernel/cobalt/nucleus/timer.c @@ -1057,7 +1057,7 @@ static int timer_vfile_show(struct xnvfile_regular_iterator *it, void *data) const char *tm_status, *wd_status = ""; if (xnpod_active_p()) { - tm_status = "on"; + tm_status = testbits(nkclock.status, XNTBLCK) ? "locked" : "on"; #ifdef CONFIG_XENO_OPT_WATCHDOG wd_status = "+watchdog"; #endif /* CONFIG_XENO_OPT_WATCHDOG */ _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git