From 8042107a6ee9881d6b0ceefdd7ee3423a2134569 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 25 Jun 2015 11:28:59 +0200 Subject: 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 4be4de6974..600f46e377 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 ae10f82419..8ffeb1d828 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -25,6 +25,10 @@ #include #include +#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(); -- cgit v1.2.3