summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c/eepromdd.C
diff options
context:
space:
mode:
authorTerry J. Opie <opiet@us.ibm.com>2011-12-06 13:26:00 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-01-03 11:25:38 -0600
commit6ef4a1ccee37fe19408d671632eaf1d33225da96 (patch)
tree723dd22672ea18e2af93ed9275d7728f8a0ecc01 /src/usr/i2c/eepromdd.C
parent4251b56d6cf0474aca73b1d7f4c34f33dce42d20 (diff)
downloadblackbird-hostboot-6ef4a1ccee37fe19408d671632eaf1d33225da96.tar.gz
blackbird-hostboot-6ef4a1ccee37fe19408d671632eaf1d33225da96.zip
I2C to use Attribute based Mutexes
Additionally: - Static initializer for EEPROM mutex - Move I2C back to extended image Change-Id: I3cb4bd755aff7c223b3fd794ee88947b0e77f179 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/565 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/i2c/eepromdd.C')
-rwxr-xr-xsrc/usr/i2c/eepromdd.C9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/usr/i2c/eepromdd.C b/src/usr/i2c/eepromdd.C
index b046d109a..f472a72f2 100755
--- a/src/usr/i2c/eepromdd.C
+++ b/src/usr/i2c/eepromdd.C
@@ -46,8 +46,7 @@
// ----------------------------------------------
// Globals
// ----------------------------------------------
-mutex_t g_eepromMutex;
-bool g_initEepromMutex = true;
+mutex_t g_eepromMutex = MUTEX_INITIALIZER;
// ----------------------------------------------
// Trace definitions
@@ -111,12 +110,6 @@ errlHndl_t eepromPerformOp( DeviceFW::OperationType i_opType,
do
{
- if( g_initEepromMutex )
- {
- mutex_init( &g_eepromMutex );
- g_initEepromMutex = false;
- }
-
// Read Attributes needed to complete the operation
err = eepromReadAttributes( i_target,
i2cInfo );
OpenPOWER on IntegriCloud