瀏覽代碼

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 <acourbot@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Alexandre Courbot 11 年之前
父節點
當前提交
cd42145cd9
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/arm/include/asm/firmware.h

+ 4 - 0
arch/arm/include/asm/firmware.h

@@ -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
 	 */