[rtems commit] score: Move SMP CPU_USE_DEFERRED_FP_SWITCH check
Sebastian Huber
sebh at rtems.org
Thu Jun 25 09:29:36 UTC 2015
Module: rtems
Branch: master
Commit: 8042107a6ee9881d6b0ceefdd7ee3423a2134569
Changeset: http://git.rtems.org/rtems/commit/?id=8042107a6ee9881d6b0ceefdd7ee3423a2134569
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Jun 25 11:28:59 2015 +0200
score: Move SMP CPU_USE_DEFERRED_FP_SWITCH check
---
cpukit/score/include/rtems/score/percpu.h | 4 ----
cpukit/score/src/smp.c | 4 ++++
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h
index 4be4de6..600f46e 100644
--- a/cpukit/score/include/rtems/score/percpu.h
+++ b/cpukit/score/include/rtems/score/percpu.h
@@ -73,10 +73,6 @@ struct Scheduler_Context;
#if defined( RTEMS_SMP )
-#if CPU_USE_DEFERRED_FP_SWITCH == TRUE
- #error "deferred FP switch not implemented for SMP"
-#endif
-
/**
* @brief State of a processor.
*
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index ae10f82..8ffeb1d 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -25,6 +25,10 @@
#include <rtems/score/threadimpl.h>
#include <rtems/config.h>
+#if CPU_USE_DEFERRED_FP_SWITCH == TRUE
+ #error "deferred FP switch not implemented for SMP"
+#endif
+
static void _SMP_Start_processors( uint32_t cpu_count )
{
uint32_t cpu_index_self = _SMP_Get_current_processor();
More information about the vc
mailing list