Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/fdt Allow devices to attach to cpu devices



details:   https://anonhg.NetBSD.org/src/rev/ef9d310de65c
branches:  trunk
changeset: 824328:ef9d310de65c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Jun 02 00:01:00 2017 +0000

description:
Allow devices to attach to cpu devices

diffstat:

 sys/dev/fdt/cpus.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 522712954dca -r ef9d310de65c sys/dev/fdt/cpus.c
--- a/sys/dev/fdt/cpus.c        Thu Jun 01 17:01:18 2017 +0000
+++ b/sys/dev/fdt/cpus.c        Fri Jun 02 00:01:00 2017 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
                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);
        }
 }



Home | Main Index | Thread Index | Old Index