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

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

cobalt/arm: 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/arm/thread.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/cobalt/arch/arm/thread.c b/kernel/cobalt/arch/arm/thread.c
index e13fb63..46b830d 100644
--- a/kernel/cobalt/arch/arm/thread.c
+++ b/kernel/cobalt/arch/arm/thread.c
@@ -283,9 +283,9 @@ int xnarch_handle_fpu_fault(struct xnthread *from,
                return 0;
 #endif
 
-       xnlock_get_irqsave(&nklock, s);
+       xnlock_get(&nklock);
        xnthread_set_state(to, XNFPU);
-       xnlock_put_irqrestore(&nklock, s);
+       xnlock_put(&nklock);
 
        xnarch_switch_fpu(from, to);
 


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

Reply via email to