Module: xenomai-2.6
Branch: master
Commit: 8c0f58b5893cb53b2c9c9db43ef2ffb4ada97905
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=8c0f58b5893cb53b2c9c9db43ef2ffb4ada97905

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

---

 ksrc/nucleus/timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/nucleus/timer.c b/ksrc/nucleus/timer.c
index 97d166f..c010482 100644
--- a/ksrc/nucleus/timer.c
+++ b/ksrc/nucleus/timer.c
@@ -1125,7 +1125,7 @@ static int timer_vfile_show(struct 
xnvfile_regular_iterator *it, void *data)
        const char *tm_status, *wd_status = "";
 
        if (xnpod_active_p() && xntbase_enabled_p(&nktbase)) {
-               tm_status = "on";
+               tm_status = testbits(nktbase.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