diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-26 06:34:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-05 13:41:06 +0200 |
commit | 8776bb94197613a369b47b3adf4b2d4e0ba766ed (patch) | |
tree | 37f2177f56e8d758bc4433ea8f8d98851fa81a18 /cpukit/score/cpu/v850 | |
parent | dev/sc16is752: Deal with a baud of zero (diff) | |
download | rtems-8776bb94197613a369b47b3adf4b2d4e0ba766ed.tar.bz2 |
score: Remove CPU_PROVIDES_IDLE_THREAD_BODY
Remove the CPU_PROVIDES_IDLE_THREAD_BODY option to avoid unnecessary
conditional compilation.
Close #3539.
Diffstat (limited to 'cpukit/score/cpu/v850')
-rw-r--r-- | cpukit/score/cpu/v850/Makefile.am | 1 | ||||
-rw-r--r-- | cpukit/score/cpu/v850/include/rtems/score/cpu.h | 29 |
2 files changed, 3 insertions, 27 deletions
diff --git a/cpukit/score/cpu/v850/Makefile.am b/cpukit/score/cpu/v850/Makefile.am index 8db039c9f5..3e3e8ae94f 100644 --- a/cpukit/score/cpu/v850/Makefile.am +++ b/cpukit/score/cpu/v850/Makefile.am @@ -5,6 +5,7 @@ libscorecpu_a_SOURCES = cpu.c libscorecpu_a_SOURCES += cpu_asm.S libscorecpu_a_SOURCES += ../no_cpu/cpucounterfrequency.c libscorecpu_a_SOURCES += ../no_cpu/cpucounterread.c +libscorecpu_a_SOURCES += ../no_cpu/cpuidle.c libscorecpu_a_SOURCES += v850-exception-frame-print.c libscorecpu_a_CPPFLAGS = $(AM_CPPFLAGS) diff --git a/cpukit/score/cpu/v850/include/rtems/score/cpu.h b/cpukit/score/cpu/v850/include/rtems/score/cpu.h index 46e7bca754..7011366ffb 100644 --- a/cpukit/score/cpu/v850/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/v850/include/rtems/score/cpu.h @@ -165,33 +165,6 @@ extern "C" { #define CPU_ENABLE_ROBUST_THREAD_DISPATCH FALSE /** - * Does this port provide a CPU dependent IDLE task implementation? - * - * If TRUE, then the routine @ref _CPU_Thread_Idle_body - * must be provided and is the default IDLE thread body instead of - * @ref _CPU_Thread_Idle_body. - * - * If FALSE, then use the generic IDLE thread body if the BSP does - * not provide one. - * - * This is intended to allow for supporting processors which have - * a low power or idle mode. When the IDLE thread is executed, then - * the CPU can be powered down. - * - * The order of precedence for selecting the IDLE thread body is: - * - * -# BSP provided - * -# CPU dependent (if provided) - * -# generic (if no BSP and no CPU dependent) - * - * Port Specific Information: - * - * There does not appear to be a reason for the v850 port itself to provide - * a special idle task. - */ -#define CPU_PROVIDES_IDLE_THREAD_BODY FALSE - -/** * Does the stack grow up (toward higher addresses) or down * (toward lower addresses)? * @@ -665,6 +638,8 @@ void _CPU_Context_Initialize( */ void _CPU_Initialize(void); +void *_CPU_Thread_Idle_body( uintptr_t ignored ); + /** * @addtogroup CPUContext */ |