diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-05-20 09:06:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-05-20 09:06:48 +0200 |
commit | 41cddcc6e194be27d1e4125b961acb94e278552b (patch) | |
tree | 03bd260a9a7d53b928e44f7d17abaf1a77b33769 /cpukit/include | |
parent | score: Remove superfluous include (diff) | |
download | rtems-41cddcc6e194be27d1e4125b961acb94e278552b.tar.bz2 |
score: Add _Per_CPU_Wait_for_job()
Diffstat (limited to 'cpukit/include')
-rw-r--r-- | cpukit/include/rtems/score/percpu.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 ) */ /* |