[PATCH 2/2] rtems: Add constraints for rtems_clock_tick()

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Sep 2 08:39:28 UTC 2022


---
 cpukit/include/rtems/rtems/clock.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/cpukit/include/rtems/rtems/clock.h b/cpukit/include/rtems/rtems/clock.h
index 98ea9775e9..5a9ecab24a 100644
--- a/cpukit/include/rtems/rtems/clock.h
+++ b/cpukit/include/rtems/rtems/clock.h
@@ -1189,6 +1189,18 @@ static inline bool rtems_clock_tick_before( rtems_interval ticks )
  * @par Notes
  * The directive is a legacy interface.  It should not be called by
  * applications directly.  A Clock Driver may call this directive.
+ *
+ * @par Constraints
+ * @parblock
+ * The following constraints apply to this directive:
+ *
+ * * The directive may be called from within interrupt context.
+ *
+ * * The directive may be called from within device driver initialization
+ *   context.
+ *
+ * * The directive may be called from within task context.
+ * @endparblock
  */
 rtems_status_code rtems_clock_tick( void );
 
-- 
2.35.3



More information about the devel mailing list