EPOCH(9): Use PER_CPU_DATA_NEED_INITIALIZATION()

Use the PER_CPU_DATA_NEED_INITIALIZATION() macro if necessary to request an
initialization of the per-CPU data.
This commit is contained in:
Sebastian Huber 2021-06-10 10:07:57 +02:00
parent 5b82fcf06a
commit fb6a312bd6

View File

@ -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);