drivers: flash: npcx: add k_usleep when polling busy status #90784
Labels
Backport
Backport PR and backport failure issues
Enhancement
Changes/Updates/Additions to existing features
platform: Nuvoton NPCX
Nuvoton NPCX
priority: low
Low impact/importance bug
Is your enhancement proposal related to a problem? Please describe.
Busy polling flash status wastes CPU cycles and may block lower-priority threads.
Describe the solution you'd like
Adding k_usleep while polling the flash's busy status yields the CPU
resource, giving lower-priority threads the opportunity to run.
The text was updated successfully, but these errors were encountered: