Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fdt Attach cpufreq scaling provider to ourself, ...



details:   https://anonhg.NetBSD.org/src/rev/d0f7947c5f55
branches:  trunk
changeset: 323827:d0f7947c5f55
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Jul 02 16:36:49 2018 +0000

description:
Attach cpufreq scaling provider to ourself, as cpus doesn't do this anymore

diffstat:

 sys/arch/arm/fdt/cpu_fdt.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 9be1ba72ddbe -r d0f7947c5f55 sys/arch/arm/fdt/cpu_fdt.c
--- a/sys/arch/arm/fdt/cpu_fdt.c        Mon Jul 02 16:06:50 2018 +0000
+++ b/sys/arch/arm/fdt/cpu_fdt.c        Mon Jul 02 16:36:49 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_fdt.c,v 1.7 2018/06/22 23:46:04 jmcneill Exp $ */
+/* $NetBSD: cpu_fdt.c,v 1.8 2018/07/02 16:36:49 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_fdt.c,v 1.7 2018/06/22 23:46:04 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_fdt.c,v 1.8 2018/07/02 16:36:49 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -146,4 +146,7 @@
 
        /* Attach the CPU */
        cpu_attach(self, cpuid);
+
+       /* Attach CPU frequency scaling provider */
+       config_found(self, faa, NULL);
 }



Home | Main Index | Thread Index | Old Index