mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 07:07:24 -04:00
As a minor optimization, do suspended checking more like it was originally
in the PR - before the while loop.
This commit is contained in:
parent
04ea20fcf4
commit
b184b38e2b
2 changed files with 12 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue