summaryrefslogtreecommitdiffstats
path: root/src/usr/sbeio
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2018-02-14 12:27:51 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-02-15 11:22:56 -0500
commit528b3930d63afb94e55877f6be0060b1d01fe8eb (patch)
treebafa7a537ed5ea1451fd4bd36672fc6fe27ee930 /src/usr/sbeio
parent864e746259e46ef90ffcf8dcdc7273bd8a1ee7d0 (diff)
downloadtalos-hostboot-528b3930d63afb94e55877f6be0060b1d01fe8eb.tar.gz
talos-hostboot-528b3930d63afb94e55877f6be0060b1d01fe8eb.zip
Increase poll wait time for SBE PSU operations
Adding an explicit sleep versus relying on a context switch to determine when PSU operations to the SBE have timed out. Change-Id: I411b45f3ce793eb60e7defe37cf4273abd5d066a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54048 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/sbeio')
-rw-r--r--src/usr/sbeio/sbe_psudd.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/sbeio/sbe_psudd.C b/src/usr/sbeio/sbe_psudd.C
index df312ea7a..58a891e26 100644
--- a/src/usr/sbeio/sbe_psudd.C
+++ b/src/usr/sbeio/sbe_psudd.C
@@ -647,8 +647,8 @@ errlHndl_t SbePsu::pollForPsuComplete(TARGETING::Target * i_target,
}
// try later
- task_yield();
- l_elapsed_time_ns += ONE_CTX_SWITCH_NS;
+ nanosleep( 0, 10000 ); //sleep for 10us
+ l_elapsed_time_ns += 10000;
// There will be many polls to check for the complete. If there
// is a problem, then there will be hundreds before timing out
OpenPOWER on IntegriCloud