git: d539f2d9d2ce - main - dev/ofw: Register the ofw_cpu xref
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Oct 2025 12:02:30 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=d539f2d9d2ce88f295567578d0e7a3b49d45544b
commit d539f2d9d2ce88f295567578d0e7a3b49d45544b
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2025-10-27 10:57:54 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2025-10-27 11:36:18 +0000
dev/ofw: Register the ofw_cpu xref
This allows it to be referenced by other devices.
Reviewed by: jhibbits
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D53329
---
sys/dev/ofw/ofw_cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/dev/ofw/ofw_cpu.c b/sys/dev/ofw/ofw_cpu.c
index da66737b6da8..4b12f2e994e3 100644
--- a/sys/dev/ofw/ofw_cpu.c
+++ b/sys/dev/ofw/ofw_cpu.c
@@ -332,6 +332,7 @@ ofw_cpu_attach(device_t dev)
device_printf(dev, "Nominal frequency %dMhz\n",
sc->sc_nominal_mhz);
+ OF_device_register_xref(OF_xref_from_node(node), dev);
bus_identify_children(dev);
bus_attach_children(dev);
return (0);