RTEMS | cpukit: Create DHRL Library for DRAM Latency Mitigation (!1193)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed May 20 20:47:01 UTC 2026
Gedare Bloom started a new discussion on cpukit/dhrl/dhrl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150591
> +};
> +
> +static struct dhrl_control dhrl_instance;
> +
> +/* Worker Task Implementation */
> +static rtems_task dhrl_worker_loop( rtems_task_argument arg )
> +{
> + struct dhrl_control *ctx = (struct dhrl_control *) arg;
> + int channel_id = ( ctx->worker_a_id == rtems_task_self() ) ? 0 : 1;
> +
> + while ( 1 ) {
> + rtems_barrier_wait( ctx->start_barrier, RTEMS_NO_TIMEOUT );
> +
> + atomic_thread_fence( memory_order_acquire );
> +
> + unsigned int my_epoch = atomic_load_explicit(
declare all variables at the start of their scope.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150591
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260520/0fc0ea7f/attachment.htm>
More information about the bugs
mailing list