Page MenuHomeFreeBSD

D8244.diff
No OneTemporary

D8244.diff

Index: sys/dev/ipmi/ipmi_kcs.c
===================================================================
--- sys/dev/ipmi/ipmi_kcs.c
+++ sys/dev/ipmi/ipmi_kcs.c
@@ -60,14 +60,14 @@
if (state == 0) {
/* WAIT FOR IBF = 0 */
while (ticks - start < MAX_TIMEOUT && status & KCS_STATUS_IBF) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}
} else {
/* WAIT FOR IBF = 1 */
while (ticks - start < MAX_TIMEOUT &&
!(status & KCS_STATUS_IBF)) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}
}
@@ -83,14 +83,14 @@
if (state == 0) {
/* WAIT FOR OBF = 0 */
while (ticks - start < MAX_TIMEOUT && status & KCS_STATUS_OBF) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}
} else {
/* WAIT FOR OBF = 1 */
while (ticks - start < MAX_TIMEOUT &&
!(status & KCS_STATUS_OBF)) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}
}
@@ -200,7 +200,7 @@
if (KCS_STATUS_STATE(status) == KCS_STATUS_STATE_WRITE)
break;
- DELAY(1000000);
+ pause_sbt("ipmkcs", SBT_1S, 0, 0);
}
if (KCS_STATUS_STATE(status) != KCS_STATUS_STATE_WRITE)
@@ -561,7 +561,7 @@
/* Wait for IBF = 0 */
status = INB(sc, KCS_CTL_STS);
while (status & KCS_STATUS_IBF) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}
@@ -570,7 +570,7 @@
/* Wait for IBF = 0 */
status = INB(sc, KCS_CTL_STS);
while (status & KCS_STATUS_IBF) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}
@@ -600,14 +600,14 @@
/* Wait for IBF = 0 */
status = INB(sc, KCS_CTL_STS);
while (status & KCS_STATUS_IBF) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}
if (KCS_STATUS_STATE(status) == KCS_STATUS_STATE_READ) {
/* Wait for IBF = 1 */
while (!(status & KCS_STATUS_OBF)) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}
@@ -620,7 +620,7 @@
/* Wait for IBF = 0 */
status = INB(sc, KCS_CTL_STS);
while (status & KCS_STATUS_IBF) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}
}
@@ -628,7 +628,7 @@
if (KCS_STATUS_STATE(status) == KCS_STATUS_STATE_IDLE) {
/* Wait for IBF = 1 */
while (!(status & KCS_STATUS_OBF)) {
- DELAY(100);
+ pause_sbt("ipmkcs", SBT_1US * 100, 0, 0);
status = INB(sc, KCS_CTL_STS);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 2:38 AM (12 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9068586
Default Alt Text
D8244.diff (2 KB)

Event Timeline