diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2014-02-07 13:35:04 +0900 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2014-02-18 13:46:42 -0700 |
commit | cd42145cd993fa1a7426d63648fc7e3423fb2e1d (patch) | |
tree | 889688f5cce091552061c60c6cea98d613779fbc | |
parent | 5b154f18086f11096567aad55543af4bc44a0aa0 (diff) | |
download | linux-cd42145cd993fa1a7426d63648fc7e3423fb2e1d.tar.gz linux-cd42145cd993fa1a7426d63648fc7e3423fb2e1d.tar.bz2 linux-cd42145cd993fa1a7426d63648fc7e3423fb2e1d.zip |
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>
-rw-r--r-- | arch/arm/include/asm/firmware.h | 4 |
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); |