[PATCH] EPOCH(9): Use PER_CPU_DATA_NEED_INITIALIZATION()
Gedare Bloom
gedare at rtems.org
Thu Jun 10 13:48:50 UTC 2021
ok
On Thu, Jun 10, 2021 at 2:09 AM Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
>
> 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
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list