Closed petris closed 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.
Looks all good to me, thanks!
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.