From 41cddcc6e194be27d1e4125b961acb94e278552b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 20 May 2019 09:06:48 +0200 Subject: score: Add _Per_CPU_Wait_for_job() --- cpukit/include/rtems/score/percpu.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cpukit/include') diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h index 85e10fbbaa..c661310a8b 100644 --- a/cpukit/include/rtems/score/percpu.h +++ b/cpukit/include/rtems/score/percpu.h @@ -811,6 +811,20 @@ void _Per_CPU_Perform_jobs( Per_CPU_Control *cpu ); */ void _Per_CPU_Add_job( Per_CPU_Control *cpu, Per_CPU_Job *job ); +/** + * @brief Waits for the job carried out by the specified processor. + * + * This function may result in an SMP_FATAL_WRONG_CPU_STATE_TO_PERFORM_JOBS + * fatal error. + * + * @param[in] cpu The processor carrying out the job. + * @param[in] job The job to wait for. + */ +void _Per_CPU_Wait_for_job( + const Per_CPU_Control *cpu, + const Per_CPU_Job *job +); + #endif /* defined( RTEMS_SMP ) */ /* -- cgit v1.2.3