Module Name: src
Committed By: jmcneill
Date: Fri Jun 2 00:01:00 UTC 2017
Modified Files:
src/sys/dev/fdt: cpus.c
Log Message:
Allow devices to attach to cpu devices
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/fdt/cpus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/fdt/cpus.c
diff -u src/sys/dev/fdt/cpus.c:1.1 src/sys/dev/fdt/cpus.c:1.2
--- src/sys/dev/fdt/cpus.c:1.1 Sun May 28 00:38:40 2017
+++ src/sys/dev/fdt/cpus.c Fri Jun 2 00:01:00 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: cpus.c,v 1.1 2017/05/28 00:38:40 jmcneill Exp $ */
+/* $NetBSD: cpus.c,v 1.2 2017/06/02 00:01:00 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpus.c,v 1.1 2017/05/28 00:38:40 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpus.c,v 1.2 2017/06/02 00:01:00 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -71,6 +71,8 @@ cpus_attach(device_t parent, device_t se
cfaa.faa_name = "cpu";
cfaa.faa_quiet = 0;
- config_found(self, &cfaa, fdtbus_print);
+ device_t cpu = config_found(self, &cfaa, fdtbus_print);
+ if (cpu)
+ config_found(cpu, &cfaa, NULL);
}
}