Source-Changes-HG archive

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

[src/trunk]: src/sys/arch mips: Use device_set_private for cpuN on older ports.



details:   https://anonhg.NetBSD.org/src/rev/1b17770a6a45
branches:  trunk
changeset: 362584:1b17770a6a45
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Mar 03 06:27:03 2022 +0000

description:
mips: Use device_set_private for cpuN on older ports.

Specifically, for those that don't use cpu_attach_common of
mips_subr.c.

diffstat:

 sys/arch/cobalt/cobalt/cpu.c           |  6 +++---
 sys/arch/ews4800mips/ews4800mips/cpu.c |  6 +++---
 sys/arch/hpcmips/hpcmips/cpu.c         |  6 +++---
 sys/arch/mipsco/mipsco/cpu.c           |  6 +++---
 sys/arch/newsmips/newsmips/cpu.c       |  6 +++---
 sys/arch/pmax/pmax/cpu.c               |  6 +++---
 sys/arch/sgimips/sgimips/cpu.c         |  6 +++---
 7 files changed, 21 insertions(+), 21 deletions(-)

diffs (189 lines):

diff -r f05ac1337896 -r 1b17770a6a45 sys/arch/cobalt/cobalt/cpu.c
--- a/sys/arch/cobalt/cobalt/cpu.c      Thu Mar 03 06:26:28 2022 +0000
+++ b/sys/arch/cobalt/cobalt/cpu.c      Thu Mar 03 06:27:03 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.11 2011/02/20 07:54:10 matt Exp $    */
+/*     $NetBSD: cpu.c,v 1.12 2022/03/03 06:27:03 riastradh Exp $       */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.11 2011/02/20 07:54:10 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.12 2022/03/03 06:27:03 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -59,7 +59,7 @@
        struct cpu_info * const ci = curcpu();
 
        ci->ci_dev = self;
-       self->dv_private = ci;
+       device_set_private(self, ci);
 
        aprint_normal(": ");
        cpu_identify(self);
diff -r f05ac1337896 -r 1b17770a6a45 sys/arch/ews4800mips/ews4800mips/cpu.c
--- a/sys/arch/ews4800mips/ews4800mips/cpu.c    Thu Mar 03 06:26:28 2022 +0000
+++ b/sys/arch/ews4800mips/ews4800mips/cpu.c    Thu Mar 03 06:27:03 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.5 2015/06/23 21:00:23 matt Exp $     */
+/*     $NetBSD: cpu.c,v 1.6 2022/03/03 06:27:03 riastradh Exp $        */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang.  All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.5 2015/06/23 21:00:23 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.6 2022/03/03 06:27:03 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -66,7 +66,7 @@
        struct cpu_info * const ci = curcpu();
 
        ci->ci_dev = self;
-       self->dv_private = ci;
+       device_set_private(self, ci);
 
        aprint_normal(": ");
        cpu_attached = 1;
diff -r f05ac1337896 -r 1b17770a6a45 sys/arch/hpcmips/hpcmips/cpu.c
--- a/sys/arch/hpcmips/hpcmips/cpu.c    Thu Mar 03 06:26:28 2022 +0000
+++ b/sys/arch/hpcmips/hpcmips/cpu.c    Thu Mar 03 06:27:03 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.18 2011/02/26 12:08:30 tsutsui Exp $ */
+/*     $NetBSD: cpu.c,v 1.19 2022/03/03 06:27:03 riastradh Exp $       */
 /*-
  * Copyright (c) 1999 Shin Takemura, All rights reserved.
  * Copyright (c) 1999-2001 SATO Kazumi, All rights reserved.
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.18 2011/02/26 12:08:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.19 2022/03/03 06:27:03 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -93,7 +93,7 @@
        struct cpu_info * const ci = curcpu();
 
        ci->ci_dev = self;
-       self->dv_private = ci;
+       device_set_private(self, ci);
 
        aprint_normal(": ");
 
diff -r f05ac1337896 -r 1b17770a6a45 sys/arch/mipsco/mipsco/cpu.c
--- a/sys/arch/mipsco/mipsco/cpu.c      Thu Mar 03 06:26:28 2022 +0000
+++ b/sys/arch/mipsco/mipsco/cpu.c      Thu Mar 03 06:27:03 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.11 2012/10/27 17:18:03 chs Exp $     */
+/*     $NetBSD: cpu.c,v 1.12 2022/03/03 06:27:03 riastradh Exp $       */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.11 2012/10/27 17:18:03 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.12 2022/03/03 06:27:03 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -66,7 +66,7 @@
        struct cpu_info * const ci = curcpu();
 
        ci->ci_dev = self;
-       self->dv_private = ci;
+       device_set_private(self, ci);
 
        aprint_normal(": ");
        cpu_identify(self);
diff -r f05ac1337896 -r 1b17770a6a45 sys/arch/newsmips/newsmips/cpu.c
--- a/sys/arch/newsmips/newsmips/cpu.c  Thu Mar 03 06:26:28 2022 +0000
+++ b/sys/arch/newsmips/newsmips/cpu.c  Thu Mar 03 06:27:03 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.12 2011/02/20 07:56:31 matt Exp $    */
+/*     $NetBSD: cpu.c,v 1.13 2022/03/03 06:27:03 riastradh Exp $       */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.12 2011/02/20 07:56:31 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.13 2022/03/03 06:27:03 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -66,7 +66,7 @@
        struct cpu_info * const ci = curcpu();
 
        ci->ci_dev = self;
-       self->dv_private = ci;
+       device_set_private(self, ci);
 
        aprint_normal(": ");
        cpu_identify(self);
diff -r f05ac1337896 -r 1b17770a6a45 sys/arch/pmax/pmax/cpu.c
--- a/sys/arch/pmax/pmax/cpu.c  Thu Mar 03 06:26:28 2022 +0000
+++ b/sys/arch/pmax/pmax/cpu.c  Thu Mar 03 06:27:03 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.31 2011/07/09 17:32:30 matt Exp $ */
+/* $NetBSD: cpu.c,v 1.32 2022/03/03 06:27:03 riastradh Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.31 2011/07/09 17:32:30 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.32 2022/03/03 06:27:03 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -66,7 +66,7 @@
        struct cpu_info * const ci = curcpu();
 
        ci->ci_dev = self;
-       self->dv_private = ci;
+       device_set_private(self, ci);
 
        aprint_normal(": ");
        cpu_identify(self);
diff -r f05ac1337896 -r 1b17770a6a45 sys/arch/sgimips/sgimips/cpu.c
--- a/sys/arch/sgimips/sgimips/cpu.c    Thu Mar 03 06:26:28 2022 +0000
+++ b/sys/arch/sgimips/sgimips/cpu.c    Thu Mar 03 06:27:03 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.27 2016/11/17 23:46:52 macallan Exp $        */
+/*     $NetBSD: cpu.c,v 1.28 2022/03/03 06:27:03 riastradh Exp $       */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.27 2016/11/17 23:46:52 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.28 2022/03/03 06:27:03 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -91,7 +91,7 @@
        struct cpu_info * const ci = curcpu();
 
        ci->ci_dev = self;
-       self->dv_private = ci;
+       device_set_private(self, ci);
 
        aprint_normal(": ");
        cpu_identify(self);



Home | Main Index | Thread Index | Old Index