Module: xenomai-2.5 Branch: master Commit: 3d6fa118ef282c60dfeb0e690a579e8357bb7d13 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=3d6fa118ef282c60dfeb0e690a579e8357bb7d13
Author: Philippe Gerum <r...@xenomai.org> Date: Mon Apr 11 10:01:41 2011 +0200 powerpc/switchtest: never run fptests if PPC_FPU is off --- include/asm-powerpc/fptest.h | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/asm-powerpc/fptest.h b/include/asm-powerpc/fptest.h index 02c5cb3..c8381d6 100644 --- a/include/asm-powerpc/fptest.h +++ b/include/asm-powerpc/fptest.h @@ -7,6 +7,9 @@ static inline int fp_kernel_supported(void) { +#ifdef CONFIG_PPC_FPU + return 1; +#else /* !CONFIG_PPC_FPU */ #ifdef CONFIG_XENO_HW_MATH_EMU static int once = 0; if (!once) { @@ -14,10 +17,9 @@ static inline int fp_kernel_supported(void) printk("Warning: math emulation code defined in kernel\n" " no kernel-based FPU support for this platform\n"); } +#endif /* !CONFIG_XENO_HW_MATH_EMU */ return 0; -#else - return 1; -#endif +#endif /* !CONFIG_PPC_FPU */ } static inline int fp_linux_begin(void) _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git