Module: xenomai-head Branch: master Commit: c679edbdc489818f258cb108e2711caedd44c096 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=c679edbdc489818f258cb108e2711caedd44c096
Author: Philippe Gerum <[email protected]> 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 [email protected] https://mail.gna.org/listinfo/xenomai-git
