[Xenomai-git] Philippe Gerum : nucleus/pod: delegate TCB cleanup to exit handler for dormant user threads

2013-05-24 Thread git repository hosting
Module: xenomai-2.6
Branch: for-upstream
Commit: b2ddb284c9b7e6cbd6c2a0d26544e9a0a618f32a
URL:
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=b2ddb284c9b7e6cbd6c2a0d26544e9a0a618f32a

Author: Philippe Gerum r...@xenomai.org
Date:   Fri May 24 16:17:02 2013 +0200

nucleus/pod: delegate TCB cleanup to exit handler for dormant user threads

TCB cleanup for any userland thread shall be performed over its own
context: this rule is also applicable to un-started threads, still
bearing the XNDORMANT bit.

---

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

diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c
index f977db3..aacdd4a 100644
--- a/ksrc/nucleus/pod.c
+++ b/ksrc/nucleus/pod.c
@@ -1120,7 +1120,6 @@ void xnpod_delete_thread(xnthread_t *thread)
 */
 
if (xnthread_user_task(thread) != NULL 
-   !xnthread_test_state(thread, XNDORMANT) 
!xnthread_test_info(thread, XNABORT) 
!xnpod_current_p(thread)) {
if (!xnpod_userspace_p())


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : nucleus/pod: delegate TCB cleanup to exit handler for dormant user threads

2013-05-24 Thread git repository hosting
Module: xenomai-2.6
Branch: for-upstream
Commit: b2ddb284c9b7e6cbd6c2a0d26544e9a0a618f32a
URL:
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=b2ddb284c9b7e6cbd6c2a0d26544e9a0a618f32a

Author: Philippe Gerum r...@xenomai.org
Date:   Fri May 24 16:17:02 2013 +0200

nucleus/pod: delegate TCB cleanup to exit handler for dormant user threads

TCB cleanup for any userland thread shall be performed over its own
context: this rule is also applicable to un-started threads, still
bearing the XNDORMANT bit.

---

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

diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c
index f977db3..aacdd4a 100644
--- a/ksrc/nucleus/pod.c
+++ b/ksrc/nucleus/pod.c
@@ -1120,7 +1120,6 @@ void xnpod_delete_thread(xnthread_t *thread)
 */
 
if (xnthread_user_task(thread) != NULL 
-   !xnthread_test_state(thread, XNDORMANT) 
!xnthread_test_info(thread, XNABORT) 
!xnpod_current_p(thread)) {
if (!xnpod_userspace_p())


___
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : nucleus/timer: display locked timer state in /proc/xenomai /timer

2013-05-24 Thread git repository hosting
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