Module: xenomai-forge
Branch: next
Commit: 606471f64b30265268607e09019d23ed14a57070
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=606471f64b30265268607e09019d23ed14a57070

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

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