# Legato 21.05 and CONFIG\_PREEMPT\_RT

**URL:** <https://forum.legato.io/t/legato-21-05-and-config-preempt-rt/6885>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [January 28, 2025, 7:57pm UTC](https://forum.legato.io/t/legato-21-05-and-config-preempt-rt/6885 "2025-01-28T19:57:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergey.semernin](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@sergey.semernin](https://forum.legato.io/u/sergey.semernin)\
**Post date:** [January 28, 2025, 7:57pm UTC](https://forum.legato.io/t/legato-21-05-and-config-preempt-rt/6885/1 "2025-01-28T19:57:48Z")

</div>

Hello,

I found that latency of GPIO interrupt handlers is big and unstable.  
On other ARM Cortex-A7 systems, for example i.MX6ULL, I used CONFIG\_PREEMPT\_RT enabled in kernel configuration to get interrupt latency stable in range 5-10 us.  
Is it possible to use this option with Legato and WP76/77 modems? Any experience? Or other way to struggle with latency should be used?

With best regards, Sergey.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [January 29, 2025, 1:38am UTC](https://forum.legato.io/t/legato-21-05-and-config-preempt-rt/6885/2 "2025-01-29T01:38:29Z")

</div>

are you using the GPIO legato API in legato application?  
How about using the GPIO interrupt in kernel driver layer and see if there is improvement?

> **[Accessing driver functions under linux kernel modules for BMI160](https://mangoh.discourse.group/t/accessing-driver-functions-under-linux-kernel-modules-for-bmi160/5162/2)**
>
> Does this help? I remember I can send the signal() message to legato application on WP77 FW9.1. You can see my code: wakeup\_by\_kernel\_driver.rar (207.5 KB) It proves that the legato application can be waken up by sending a signal from...

You can also see if this helps to change the priority of irq:

> [@MCP2515 CAN Data loss](https://forum.legato.io/t/mcp2515-can-data-loss/4928):
>
> Hi there , I am using MCP2515 based CAN IOT card . It was observed that there is a data loss if I try to send 10 DATA frames with different ID’s with a delay of 10ms . It was observed that out of 10 only 6-7 Data are received where as if i try to send only 4 Data Frames with 10ms of delay i don’t see any Data loss . Note : Peak CAN is the master device which will send the CAN data and WP7608(MCP2515) is the slave device which will receive the CAN data . (CAN dump is used to receive CAN data ) …
