wangchdo commented on code in PR #17642:
URL: https://github.com/apache/nuttx/pull/17642#discussion_r2661269727


##########
sched/hrtimer/hrtimer.h:
##########
@@ -58,6 +58,8 @@ extern seqcount_t g_hrtimer_spinlock;
 
 extern struct hrtimer_tree_s g_hrtimer_tree;
 
+extern FAR hrtimer_t *g_running_hrtimers[CONFIG_SMP_NCPUS];

Review Comment:
   Done



##########
sched/hrtimer/hrtimer_initialize.c:
##########
@@ -28,10 +28,22 @@
 
 #include "hrtimer/hrtimer.h"
 
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#define RUNNING_INITIALIZER  { NULL }
+
 /****************************************************************************
  * Public Data
  ****************************************************************************/
 
+/* Array of pointers to currently running high-resolution timers
+ * for each CPU in SMP configurations. Index corresponds to CPU ID.
+ */
+
+FAR hrtimer_t *g_running_hrtimers[CONFIG_SMP_NCPUS] = RUNNING_INITIALIZER;

Review Comment:
   Done



##########
sched/hrtimer/hrtimer_cancel.c:
##########
@@ -40,6 +40,40 @@
 
 #define HRTIMER_CANCEL_SYNC_DELAY_MS  5
 
+/****************************************************************************
+ * Private Functions
+ ****************************************************************************/
+
+/****************************************************************************

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to