diff options
author | Dave Martin <dave.martin@linaro.org> | 2012-12-10 21:19:57 +0400 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2013-09-24 02:38:54 +0400 |
commit | c0f4375146a738bae23e48fa8b5383abf02177cb (patch) | |
tree | 271ff2cfeeaa91ebf6c0345814973ad7d67154a1 /arch/arm/include/asm/bL_switcher.h | |
parent | 7f63037c8fb204f666367c6469f5a9b9d6888877 (diff) | |
download | linux-c0f4375146a738bae23e48fa8b5383abf02177cb.tar.xz |
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.h | 3 |
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 e0c0bba70bbf..05d7c4cb9473 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 |