From 8776bb94197613a369b47b3adf4b2d4e0ba766ed Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 26 Sep 2018 06:34:54 +0200 Subject: score: Remove CPU_PROVIDES_IDLE_THREAD_BODY Remove the CPU_PROVIDES_IDLE_THREAD_BODY option to avoid unnecessary conditional compilation. Close #3539. --- cpukit/score/cpu/powerpc/Makefile.am | 1 + cpukit/score/cpu/powerpc/include/rtems/score/cpu.h | 25 ++-------------------- 2 files changed, 3 insertions(+), 23 deletions(-) (limited to 'cpukit/score/cpu/powerpc') diff --git a/cpukit/score/cpu/powerpc/Makefile.am b/cpukit/score/cpu/powerpc/Makefile.am index 05ab2f480d..15736ab809 100644 --- a/cpukit/score/cpu/powerpc/Makefile.am +++ b/cpukit/score/cpu/powerpc/Makefile.am @@ -2,6 +2,7 @@ include $(top_srcdir)/automake/compile.am noinst_LIBRARIES = libscorecpu.a libscorecpu_a_SOURCES = cpu.c +libscorecpu_a_SOURCES += ../no_cpu/cpuidle.c libscorecpu_a_SOURCES += ppc-context-volatile-clobber.S libscorecpu_a_SOURCES += ppc-context-validate.S libscorecpu_a_SOURCES += ppc-isr-disable-mask.S diff --git a/cpukit/score/cpu/powerpc/include/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/include/rtems/score/cpu.h index beacc2829e..85864ff71b 100644 --- a/cpukit/score/cpu/powerpc/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/include/rtems/score/cpu.h @@ -52,29 +52,6 @@ extern "C" { /* conditional compilation parameters */ -/* - * Does this port provide a CPU dependent IDLE task implementation? - * - * If TRUE, then the routine _CPU_Thread_Idle_body - * must be provided and is the default IDLE thread body instead of - * _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: - * - * 1. BSP provided - * 2. CPU dependent (if provided) - * 3. generic (if no BSP and no CPU dependent) - */ - -#define CPU_PROVIDES_IDLE_THREAD_BODY FALSE - /* * Does the stack grow up (toward higher addresses) or down * (toward lower addresses)? @@ -940,6 +917,8 @@ void _CPU_ISR_install_vector( proc_ptr *old_handler ); +void *_CPU_Thread_Idle_body( uintptr_t ignored ); + /* * _CPU_Context_switch * -- cgit v1.2.3