Power Management
What is the Arm WFI (Wait For Interrupt) instruction used for?
- ADisabling all interrupts to speed up processing
- BWaiting for a Wi-Fi signal to arrive
- CStopping the CPU in a low-power state while waiting for an interrupt when idle, resuming when one arrives
Show answer and explanation
Answer: C. Stopping the CPU in a low-power state while waiting for an interrupt when idle, resuming when one arrives
Waiting in an empty loop when idle keeps the CPU executing instructions and consuming power. Executing WFI puts the CPU into a low-power state, for example by stopping its clock, doing nothing until an interrupt arrives. It is used in OS idle loops and in microcontroller main loops waiting for the next interrupt. x86 has a similar HLT instruction.
- A. It does not disable interrupts.
- B. It has nothing to do with Wi-Fi.
- C. Correct. It saves far more power than spinning in an empty loop.