Module: xenomai-3
Branch: next
Commit: 8155e678e7f0949e541407140c776d0a8e5f6ccb
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=8155e678e7f0949e541407140c776d0a8e5f6ccb

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue May  2 12:16:07 2017 +0200

cobalt/powerpc: fixups for kernel 4.4+

---

 kernel/cobalt/arch/powerpc/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/arch/powerpc/thread.c 
b/kernel/cobalt/arch/powerpc/thread.c
index 062d33d..6ce2787 100644
--- a/kernel/cobalt/arch/powerpc/thread.c
+++ b/kernel/cobalt/arch/powerpc/thread.c
@@ -71,7 +71,7 @@ asmlinkage void __asm_disable_fpu(void);
 
 asmlinkage void __asm_enable_fpu(void);
 
-#ifndef CONFIG_SMP
+#if !defined(CONFIG_SMP) && LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
 #define get_fpu_owner(cur) last_task_used_math
 #else /* CONFIG_SMP */
 #define get_fpu_owner(cur) ({                                  \


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

Reply via email to