diff options
author | marius <marius@FreeBSD.org> | 2012-02-07 20:24:52 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2012-02-07 20:24:52 +0000 |
commit | e04eff2488f2e61bf16e804dbb4cdcf635ef86dc (patch) | |
tree | c7f9c8f9f5f2cdaf933312a6308d7bd71c28ee11 /sys/dev | |
parent | b81e3d3b8f6d65694c34ab99aadc729ded54b290 (diff) | |
download | FreeBSD-src-e04eff2488f2e61bf16e804dbb4cdcf635ef86dc.zip FreeBSD-src-e04eff2488f2e61bf16e804dbb4cdcf635ef86dc.tar.gz |
Call bge_add_sysctls() early and especially before bge_can_use_msi() so
r230337 actually has a chance of working and doesn't always unconditionally
disable the use of MSIs.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/bge/if_bge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 4329a8d..d745777 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -2786,6 +2786,8 @@ bge_attach(device_t dev) sc = device_get_softc(dev); sc->bge_dev = dev; + bge_add_sysctls(sc); + TASK_INIT(&sc->bge_intr_task, 0, bge_intr_task, sc); /* @@ -3198,8 +3200,6 @@ bge_attach(device_t dev) goto fail; } - bge_add_sysctls(sc); - /* Set default tuneable values. */ sc->bge_stat_ticks = BGE_TICKS_PER_SEC; sc->bge_rx_coal_ticks = 150; |