Module: xenomai-gch
Branch: next
Commit: 7db054e748ea7447d81fa1ca7288b4f142562a9b
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=7db054e748ea7447d81fa1ca7288b4f142562a9b

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Fri Nov 20 14:51:25 2015 +0100

cobalt/x86: remove redundant change of irq mask

xnarch_handle_fpu_fault is called with head domain stalled,
xnlock_get/xnlock_put are sufficient.

---

 kernel/cobalt/arch/x86/thread.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/cobalt/arch/x86/thread.c b/kernel/cobalt/arch/x86/thread.c
index 8d2fc23..fe7ae7b 100644
--- a/kernel/cobalt/arch/x86/thread.c
+++ b/kernel/cobalt/arch/x86/thread.c
@@ -281,7 +281,6 @@ int xnarch_handle_fpu_fault(struct xnthread *from,
 {
        struct xnarchtcb *tcb = xnthread_archtcb(to);
        struct task_struct *p = tcb->core.host_task;
-       spl_t s;
 
        if (__thread_has_fpu(p))
                return 0;
@@ -311,9 +310,9 @@ int xnarch_handle_fpu_fault(struct xnthread *from,
                
        __thread_set_has_fpu(p);
 
-       xnlock_get_irqsave(&nklock, s);
+       xnlock_get(&nklock);
        xnthread_set_state(to, XNFPU);
-       xnlock_put_irqrestore(&nklock, s);
+       xnlock_put(&nklock);
 
        return 1;
 }


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

Reply via email to