[PATCH] EPOCH(9): Use PER_CPU_DATA_NEED_INITIALIZATION()
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Jun 10 08:08:53 UTC 2021
Use the PER_CPU_DATA_NEED_INITIALIZATION() macro if necessary to request an
initialization of the per-CPU data.
---
rtemsbsd/rtems/rtems-kernel-epoch.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/rtemsbsd/rtems/rtems-kernel-epoch.c b/rtemsbsd/rtems/rtems-kernel-epoch.c
index f4fff0ea..0c070bd8 100644
--- a/rtemsbsd/rtems/rtems-kernel-epoch.c
+++ b/rtemsbsd/rtems/rtems-kernel-epoch.c
@@ -60,6 +60,10 @@ struct epoch_pcpu {
rtems_interrupt_server_request irq_srv_req;
};
+#ifdef PER_CPU_DATA_NEED_INITIALIZATION
+PER_CPU_DATA_NEED_INITIALIZATION();
+#endif
+
static PER_CPU_DATA_ITEM(struct epoch_pcpu, epoch);
static SLIST_HEAD(, epoch) epoch_list = SLIST_HEAD_INITIALIZER(epoch_list);
--
2.26.2
More information about the devel
mailing list