summaryrefslogtreecommitdiffstats
path: root/src/usr/lpc/lpcdd.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/lpc/lpcdd.H')
-rw-r--r--src/usr/lpc/lpcdd.H15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/usr/lpc/lpcdd.H b/src/usr/lpc/lpcdd.H
index 1b4e3c5bd..f4bd04176 100644
--- a/src/usr/lpc/lpcdd.H
+++ b/src/usr/lpc/lpcdd.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2016 */
+/* Contributors Listed Below - COPYRIGHT 2014,2017 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -132,6 +132,19 @@ class LpcDD
};
/**
+ * @brief Block/unblock all LPC operations
+ * @param[in] i_block true: block ops, false: allow ops
+ */
+ void lock( bool i_block )
+ {
+ if( i_block ) {
+ mutex_lock(ivp_mutex);
+ } else {
+ mutex_unlock(ivp_mutex);
+ }
+ };
+
+ /**
* @brief Constructor
* @param[in] Processor target associated with the ECCB logic
*/
OpenPOWER on IntegriCloud