diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2014-11-28 21:19:42 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-12-03 11:00:06 -0500 |
commit | 216b4688cc351e97514c40dbedd14f67ce59639a (patch) | |
tree | 980ac81ceae2c317f772057885a504d612b764fb | |
parent | 1f92f77ab68a012638afa9e001b7a1e1e5197930 (diff) |
ARM: 8240/1: MCPM: document mcpm_sync_init()
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/include/asm/mcpm.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mcpm.h b/arch/arm/include/asm/mcpm.h index d428e386c88e..3446f6a1d9fa 100644 --- a/arch/arm/include/asm/mcpm.h +++ b/arch/arm/include/asm/mcpm.h | |||
@@ -219,6 +219,23 @@ void __mcpm_outbound_leave_critical(unsigned int cluster, int state); | |||
219 | bool __mcpm_outbound_enter_critical(unsigned int this_cpu, unsigned int cluster); | 219 | bool __mcpm_outbound_enter_critical(unsigned int this_cpu, unsigned int cluster); |
220 | int __mcpm_cluster_state(unsigned int cluster); | 220 | int __mcpm_cluster_state(unsigned int cluster); |
221 | 221 | ||
222 | /** | ||
223 | * mcpm_sync_init - Initialize the cluster synchronization support | ||
224 | * | ||
225 | * @power_up_setup: platform specific function invoked during very | ||
226 | * early CPU/cluster bringup stage. | ||
227 | * | ||
228 | * This prepares memory used by vlocks and the MCPM state machine used | ||
229 | * across CPUs that may have their caches active or inactive. Must be | ||
230 | * called only after a successful call to mcpm_platform_register(). | ||
231 | * | ||
232 | * The power_up_setup argument is a pointer to assembly code called when | ||
233 | * the MMU and caches are still disabled during boot and no stack space is | ||
234 | * available. The affinity level passed to that code corresponds to the | ||
235 | * resource that needs to be initialized (e.g. 1 for cluster level, 0 for | ||
236 | * CPU level). Proper exclusion mechanisms are already activated at that | ||
237 | * point. | ||
238 | */ | ||
222 | int __init mcpm_sync_init( | 239 | int __init mcpm_sync_init( |
223 | void (*power_up_setup)(unsigned int affinity_level)); | 240 | void (*power_up_setup)(unsigned int affinity_level)); |
224 | 241 | ||