From: Alexandre Courbot Date: Fri, 7 Feb 2014 04:35:04 +0000 (+0900) Subject: ARM: firmware: add prepare_idle() operation X-Git-Tag: v3.15-rc1~79^2~5^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=cd42145cd993fa1a7426d63648fc7e3423fb2e1d;p=linux-2.6-block.git 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 Acked-by: Olof Johansson Signed-off-by: Stephen Warren --- 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 @@ -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 */