summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/firmware.h
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2014-02-07 08:35:04 +0400
committerStephen Warren <swarren@nvidia.com>2014-02-19 00:46:42 +0400
commitcd42145cd993fa1a7426d63648fc7e3423fb2e1d (patch)
tree889688f5cce091552061c60c6cea98d613779fbc /arch/arm/include/asm/firmware.h
parent5b154f18086f11096567aad55543af4bc44a0aa0 (diff)
downloadlinux-cd42145cd993fa1a7426d63648fc7e3423fb2e1d.tar.xz
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>
Diffstat (limited to 'arch/arm/include/asm/firmware.h')
-rw-r--r--arch/arm/include/asm/firmware.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/firmware.h b/arch/arm/include/asm/firmware.h
index 15631300c238..2c9f10df7568 100644
--- a/arch/arm/include/asm/firmware.h
+++ b/arch/arm/include/asm/firmware.h
@@ -22,6 +22,10 @@
*/
struct firmware_ops {
/*
+ * Inform the firmware we intend to enter CPU idle mode
+ */
+ int (*prepare_idle)(void);
+ /*
* Enters CPU idle mode
*/
int (*do_idle)(void);