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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Jun  4 07:45:35 2013 +0200

cobalt/arm: move FPU features initialization

---

 include/asm-arm/fptest.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/asm-arm/fptest.h b/include/asm-arm/fptest.h
index be2bd15..6782b6a 100644
--- a/include/asm-arm/fptest.h
+++ b/include/asm-arm/fptest.h
@@ -25,6 +25,10 @@ static inline void fp_linux_end(void)
 {
 }
 
+static inline void fp_features_init(void)
+{
+}
+
 #else /* !__KERNEL__ */
 #include <stdio.h>
 #include <string.h>
@@ -32,7 +36,7 @@ static inline void fp_linux_end(void)
 
 static int have_vfp;
 
-static void __attribute__((constructor)) fp_init(void)
+static void fp_features_init(void)
 {
        char buffer[1024];
        FILE *f = fopen("/proc/cpuinfo", "r");
@@ -54,10 +58,6 @@ static void __attribute__((constructor)) fp_init(void)
 
 #endif /* !__KERNEL__ */
 
-static inline void fp_features_init(void)
-{
-}
-
 static inline void fp_regs_set(unsigned val)
 {
        if (have_vfp) {


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

Reply via email to