ARM: firmware: add prepare_idle() operation

Some firmwares do not put the CPU into idle mode themselves, but still
need to be informed that the CPU is about to enter idle mode before this
happens. Add a prepare_idle() operation to the firmware_ops structure to
handle such cases.

Signed-off-by: Alexandre Courbot <[email protected]>
Acked-by: Olof Johansson <[email protected]>
Signed-off-by: Stephen Warren <[email protected]>
This commit is contained in:
Alexandre Courbot 2014-02-07 13:35:04 +09:00 • committed by Stephen Warren
commit cd42145cd9

View file

@ -21,6 +21,10 @@
* A filled up structure can be registered with register_firmware_ops().
*/
struct firmware_ops {
/*
* Inform the firmware we intend to enter CPU idle mode
*/
int (*prepare_idle)(void);
/*
* Enters CPU idle mode
*/