]> Git Repo - linux.git/commitdiff
ARM: firmware: add prepare_idle() operation
authorAlexandre Courbot <[email protected]>
Fri, 7 Feb 2014 04:35:04 +0000 (13:35 +0900)
committerStephen Warren <[email protected]>
Tue, 18 Feb 2014 20:46:42 +0000 (13:46 -0700)
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]>
arch/arm/include/asm/firmware.h

index 15631300c238bbf16cc2c02e2311e774d7c9d95b..2c9f10df7568d5c77010f0cf8e4e08b1bc820082 100644 (file)
  * 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
         */
This page took 0.057021 seconds and 4 git commands to generate.