summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/percpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-05-20 09:06:48 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-05-20 09:06:48 +0200
commit41cddcc6e194be27d1e4125b961acb94e278552b (patch)
tree03bd260a9a7d53b928e44f7d17abaf1a77b33769 /cpukit/include/rtems/score/percpu.h
parent9b8e85e23a4aa37b31617dd1118efad3dd350ff4 (diff)
downloadrtems-41cddcc6e194be27d1e4125b961acb94e278552b.tar.bz2
score: Add _Per_CPU_Wait_for_job()
Diffstat (limited to 'cpukit/include/rtems/score/percpu.h')
-rw-r--r--cpukit/include/rtems/score/percpu.h14
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 ) */
/*