As a minor optimization, do suspended checking more like it was originally

in the PR - before the while loop.
This commit is contained in:
David Greenman 2000-09-17 23:04:57 +00:00
parent 04ea20fcf4
commit b184b38e2b
2 changed files with 12 additions and 2 deletions

View file

@ -1218,7 +1218,12 @@ fxp_intr(arg)
FXP_LOCK(sc, s);
while (!sc->suspended && (statack = CSR_READ_1(sc, FXP_CSR_SCB_STATACK)) != 0) {
if (sc->suspended) {
FXP_UNLOCK(sc, s);
return;
}
while ((statack = CSR_READ_1(sc, FXP_CSR_SCB_STATACK)) != 0) {
#if defined(__NetBSD__)
claimed = 1;
#endif

View file

@ -1218,7 +1218,12 @@ fxp_intr(arg)
FXP_LOCK(sc, s);
while (!sc->suspended && (statack = CSR_READ_1(sc, FXP_CSR_SCB_STATACK)) != 0) {
if (sc->suspended) {
FXP_UNLOCK(sc, s);
return;
}
while ((statack = CSR_READ_1(sc, FXP_CSR_SCB_STATACK)) != 0) {
#if defined(__NetBSD__)
claimed = 1;
#endif