From: Dave Martin Date: Mon, 10 Dec 2012 17:19:57 +0000 (+0000) Subject: ARM: bL_switcher: Add synchronous enable/disable interface X-Git-Tag: v3.13-rc1~103^2~1^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0f4375146a738bae23e48fa8b5383abf02177cb;p=pandora-kernel.git 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 Signed-off-by: Nicolas Pitre --- Reading git-diff-tree failed