mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-22 05:57:28 +08:00
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:
parent
5b82fcf06a
commit
fb6a312bd6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user