diff options
author | Dave Martin <dave.martin@linaro.org> | 2012-12-10 17:19:57 +0000 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2013-05-13 19:03:39 -0400 |
commit | 910b0624fedcfbbe11548901e8e1f21ec4f56e84 (patch) | |
tree | 00521602d061e5b9bd507b295fe27e0bb8b5b822 /COPYING | |
parent | 574629e3d0dea3114e27b2c0020e9096729ec211 (diff) |
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 'COPYING')
0 files changed, 0 insertions, 0 deletions