"EPOW_POWER_OFF 7 The system will lose power. The hardware ensures that at least 4 milliseconds of power within operational thresholds is available after signalling an interrupt."
so, you're an operating system kernel, and you've just been informed you only have 4ms to live. what do you do?
- sync disks: usually takes longer than 4ms, and an interrupted sync on UFS can do more damage than not syncing
- log the event: but what is the point of the log if it's not committed to disk?
- try a normal immediate shutdown and hope we actually have more than 4ms left?