summaryrefslogtreecommitdiffstats
path: root/src/include/usr/targeting/adapters
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2013-03-13 20:39:31 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-04-15 15:42:50 -0500
commit54a7754855469231b10e644abaa5b3f367fcf00e (patch)
treeb3439b41b90e9b6d315ad43cf3d463e64fc97612 /src/include/usr/targeting/adapters
parent6e42444a52f2910a0a6f9a898c2ba4a9e8201a17 (diff)
downloadtalos-hostboot-54a7754855469231b10e644abaa5b3f367fcf00e.tar.gz
talos-hostboot-54a7754855469231b10e644abaa5b3f367fcf00e.zip
Extend Attribute Override/Sync to work on Targeting attributes
Change-Id: Icf8d84e741212f31c1065146ac1ea96c4c7d75c5 RTC: 51707 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3548 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
Diffstat (limited to 'src/include/usr/targeting/adapters')
-rw-r--r--src/include/usr/targeting/adapters/mutexadapter.H49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/include/usr/targeting/adapters/mutexadapter.H b/src/include/usr/targeting/adapters/mutexadapter.H
new file mode 100644
index 000000000..c0fda2408
--- /dev/null
+++ b/src/include/usr/targeting/adapters/mutexadapter.H
@@ -0,0 +1,49 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/targeting/adapters/mutexadapter.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2013 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef __TARGETING_MUTEXADAPTER_H
+#define __TARGETING_MUTEXADAPTER_H
+
+/**
+* @file mutexAdapter.H
+*
+* @brief Provides Hostboot specific TARGETING Mutex
+*/
+
+#include <sys/sync.h>
+
+#define TARG_MUTEX_TYPE \
+ mutex_t
+
+#define TARG_MUTEX_INIT(_t) \
+ mutex_init(&(_t))
+
+#define TARG_MUTEX_DESTROY(_t) \
+ mutex_destroy(&(_t))
+
+#define TARG_MUTEX_LOCK(_t) \
+ mutex_lock(&(_t))
+
+#define TARG_MUTEX_UNLOCK(_t) \
+ mutex_unlock(&(_t))
+
+#endif
OpenPOWER on IntegriCloud