Module: xenomai-forge
Branch: master
Commit: 37c0cf4e7409108ab4ec8c0820794cd642201692
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=37c0cf4e7409108ab4ec8c0820794cd642201692

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Jan  1 22:50:50 2012 +0100

nucleus/shadow: drop useless XNATOMIC flag

---

 include/cobalt/nucleus/thread.h |   11 +++++------
 kernel/cobalt/nucleus/shadow.c  |    4 ----
 2 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/include/cobalt/nucleus/thread.h b/include/cobalt/nucleus/thread.h
index b6f0935..1eeee8e 100644
--- a/include/cobalt/nucleus/thread.h
+++ b/include/cobalt/nucleus/thread.h
@@ -108,12 +108,11 @@
 #define XNKICKED  0x00000008 /**< Forced out of primary mode (shadow only) */
 #define XNWAKEN   0x00000010 /**< Thread waken up upon resource availability */
 #define XNROBBED  0x00000020 /**< Robbed from resource ownership */
-#define XNATOMIC  0x00000040 /**< In atomic switch from secondary to primary 
mode */
-#define XNAFFSET  0x00000080 /**< CPU affinity changed from primary mode */
-#define XNPRIOSET 0x00000100 /**< Priority changed from primary mode */
-#define XNABORT   0x00000200 /**< Thread is being aborted */
-#define XNCANPND  0x00000400 /**< Cancellation request is pending */
-#define XNSWREP   0x00000800 /**< Mode switch already reported */
+#define XNAFFSET  0x00000040 /**< CPU affinity changed from primary mode */
+#define XNPRIOSET 0x00000080 /**< Priority changed from primary mode */
+#define XNABORT   0x00000100 /**< Thread is being aborted */
+#define XNCANPND  0x00000200 /**< Cancellation request is pending */
+#define XNSWREP   0x00000400 /**< Mode switch already reported */
 
 /* These information flags are available to the real-time interfaces */
 #define XNTHREAD_INFO_SPARE0  0x10000000
diff --git a/kernel/cobalt/nucleus/shadow.c b/kernel/cobalt/nucleus/shadow.c
index e25b336..03357e7 100644
--- a/kernel/cobalt/nucleus/shadow.c
+++ b/kernel/cobalt/nucleus/shadow.c
@@ -532,14 +532,10 @@ redo:
                   thread, xnthread_name(thread), this_task->comm);
 
        sched->gktarget = thread;
-       xnthread_set_info(thread, XNATOMIC);
        set_current_state(TASK_INTERRUPTIBLE | TASK_ATOMICSWITCH);
-
        wake_up_process(sched->gatekeeper);
        hijack_current();
 
-       xnthread_clear_info(thread, XNATOMIC);
-
        /*
         * Rare case: we might have received a signal before entering
         * schedule() and returned early from it. Since TASK_UNINTERRUPTIBLE


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to