diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2025-10-27 10:57:44 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2025-10-27 11:36:18 +0000 |
| commit | 87cea227e1945a8aa808b72d210f9a391be9b234 (patch) | |
| tree | c7b3d4f81585e870a4dba890ec0b8bb78053fd46 | |
| parent | 95a5bfcee07cf522edab72388decc4d6e27d341d (diff) | |
dev/ofw: Move ofw_cpu earlier
Move ofw_cpu to BUS_PASS_CPU + BUS_PASS_ORDER_MIDDLE so it can be used
by other devices.
Reviewed by: jhibbits
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D53328
| -rw-r--r-- | sys/dev/ofw/ofw_cpu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ofw/ofw_cpu.c b/sys/dev/ofw/ofw_cpu.c index 888af0440746..da66737b6da8 100644 --- a/sys/dev/ofw/ofw_cpu.c +++ b/sys/dev/ofw/ofw_cpu.c @@ -85,7 +85,8 @@ static driver_t ofw_cpulist_driver = { sizeof(struct ofw_cpulist_softc) }; -DRIVER_MODULE(ofw_cpulist, ofwbus, ofw_cpulist_driver, 0, 0); +EARLY_DRIVER_MODULE(ofw_cpulist, ofwbus, ofw_cpulist_driver, 0, 0, + BUS_PASS_CPU + BUS_PASS_ORDER_MIDDLE); static int ofw_cpulist_probe(device_t dev) @@ -180,7 +181,8 @@ static driver_t ofw_cpu_driver = { sizeof(struct ofw_cpu_softc) }; -DRIVER_MODULE(ofw_cpu, cpulist, ofw_cpu_driver, 0, 0); +EARLY_DRIVER_MODULE(ofw_cpu, cpulist, ofw_cpu_driver, 0, 0, + BUS_PASS_CPU + BUS_PASS_ORDER_MIDDLE); static bool ofw_cpu_is_runnable(phandle_t node) |
