aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/bL_switcher.h
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2012-12-10 17:19:57 +0000
committerNicolas Pitre <nicolas.pitre@linaro.org>2013-06-20 00:45:16 -0400
commit80899af2e864a8a546f6d8f46bccdc1014e9fbd0 (patch)
tree9caa7e3d34db656f98c0884da02448fb2285d2f1 /arch/arm/include/asm/bL_switcher.h
parent976e214051cea025f8f55624b254a4e8fe44cd53 (diff)
downloadvexpress-lsk-80899af2e864a8a546f6d8f46bccdc1014e9fbd0.tar.gz
ARM: bL_switcher: Add synchronous enable/disable interface
Some subsystems will need to know for sure whether the switcher is enabled or disabled during certain critical regions. This patch provides a simple mutex-based mechanism to discover whether the switcher is enabled and temporarily lock out further enable/disable: * bL_switcher_get_enabled() returns true iff the switcher is enabled and temporarily inhibits enable/disable. * bL_switcher_put_enabled() permits enable/disable of the switcher again after a previous call to bL_switcher_get_enabled(). Signed-off-by: Dave Martin <dave.martin@linaro.org> Signed-off-by: Nicolas Pitre <nico@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/bL_switcher.h')
-rw-r--r--arch/arm/include/asm/bL_switcher.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/bL_switcher.h b/arch/arm/include/asm/bL_switcher.h
index 19757c0c987..bc23d1c8bea 100644
--- a/arch/arm/include/asm/bL_switcher.h
+++ b/arch/arm/include/asm/bL_switcher.h
@@ -14,4 +14,7 @@
int bL_switch_request(unsigned int cpu, unsigned int new_cluster_id);
+bool bL_switcher_get_enabled(void);
+void bL_switcher_put_enabled(void);
+
#endif