ARM: firmware: add prepare_idle() operation
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 7 Feb 2014 04:35:04 +0000 (13:35 +0900)
committerStephen Warren <swarren@nvidia.com>
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 <acourbot@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
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
         */