aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/mcpm.h
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2015-04-28 15:51:19 -0400
committerNicolas Pitre <nicolas.pitre@linaro.org>2015-05-06 11:47:10 -0400
commit7895f73169ade9a74940ae6b0b4ee82faf286861 (patch)
tree77b2a86217062942a1a78c9aca722b5e6f707295 /arch/arm/include/asm/mcpm.h
parent1c2c7d51c8101ab3c5d8585713d2dcd52d77d33e (diff)
ARM: MCPM: remove residency argument from mcpm_cpu_suspend()
This is currently unused. If a suspend must be limited to CPU level only by preventing the last man from triggering a cluster level suspend then this should be determined according to many other criteria the MCPM layer is currently not aware of. It is unlikely that mcpm_cpu_suspend() would be the proper conduit for that information anyway. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Dave Martin <Dave.Martin@arm.com>
Diffstat (limited to 'arch/arm/include/asm/mcpm.h')
-rw-r--r--arch/arm/include/asm/mcpm.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/arch/arm/include/asm/mcpm.h b/arch/arm/include/asm/mcpm.h
index 6a40d5f8db60..acd4983d9b1f 100644
--- a/arch/arm/include/asm/mcpm.h
+++ b/arch/arm/include/asm/mcpm.h
@@ -137,17 +137,12 @@ int mcpm_wait_for_cpu_powerdown(unsigned int cpu, unsigned int cluster);
137/** 137/**
138 * mcpm_cpu_suspend - bring the calling CPU in a suspended state 138 * mcpm_cpu_suspend - bring the calling CPU in a suspended state
139 * 139 *
140 * @expected_residency: duration in microseconds the CPU is expected 140 * The calling CPU is suspended. This is similar to mcpm_cpu_power_down()
141 * to remain suspended, or 0 if unknown/infinity. 141 * except for possible extra platform specific configuration steps to allow
142 * 142 * an asynchronous wake-up e.g. with a pending interrupt.
143 * The calling CPU is suspended. The expected residency argument is used
144 * as a hint by the platform specific backend to implement the appropriate
145 * sleep state level according to the knowledge it has on wake-up latency
146 * for the given hardware.
147 * 143 *
148 * If this CPU is found to be the "last man standing" in the cluster 144 * If this CPU is found to be the "last man standing" in the cluster
149 * then the cluster may be prepared for power-down too, if the expected 145 * then the cluster may be prepared for power-down too.
150 * residency makes it worthwhile.
151 * 146 *
152 * This must be called with interrupts disabled. 147 * This must be called with interrupts disabled.
153 * 148 *
@@ -157,7 +152,7 @@ int mcpm_wait_for_cpu_powerdown(unsigned int cpu, unsigned int cluster);
157 * This will return if mcpm_platform_register() has not been called 152 * This will return if mcpm_platform_register() has not been called
158 * previously in which case the caller should take appropriate action. 153 * previously in which case the caller should take appropriate action.
159 */ 154 */
160void mcpm_cpu_suspend(u64 expected_residency); 155void mcpm_cpu_suspend(void);
161 156
162/** 157/**
163 * mcpm_cpu_powered_up - housekeeping workafter a CPU has been powered up 158 * mcpm_cpu_powered_up - housekeeping workafter a CPU has been powered up