Module: xenomai-forge
Branch: next
Commit: 4c2ae7c58c70e52da1c5e2800b21a88384b207a6
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=4c2ae7c58c70e52da1c5e2800b21a88384b207a6

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

Reply via email to