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.
This commit is contained in:
Marius Strobl 2012-02-07 20:24:52 +00:00
parent 8a1a60d49a
commit 8c91aec273

View File

@ -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;