OpenEneaLinux / rt-tools

Collection of Linux tools for achieving real-time performance
BSD 3-Clause "New" or "Revised" License
32 stars 17 forks source link

partrt: Retry if write fails with EBUSY #12

Closed petris closed 2 years ago

petris commented 2 years ago

Setting CPU offline or online may fail with EBUSY if some other code is within cpu_hotplug_disable/enable() section. Make the write function retry for 5s if write fails with EBUSY.

Use uptime for the timeout to not be affected by time changes.

matslil commented 2 years ago

Looks all good to me, thanks!