Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vax vax: Use device_set_private.



details:   https://anonhg.NetBSD.org/src/rev/55bfebd569c4
branches:  trunk
changeset: 362588:55bfebd569c4
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Mar 03 06:28:26 2022 +0000

description:
vax: Use device_set_private.

diffstat:

 sys/arch/vax/vax/autoconf.c |  6 +++---
 sys/arch/vax/vax/ka6400.c   |  6 +++---
 sys/arch/vax/vax/ka820.c    |  8 ++++----
 sys/arch/vax/vax/ka88.c     |  6 +++---
 sys/arch/vax/vax/multicpu.c |  6 +++---
 5 files changed, 16 insertions(+), 16 deletions(-)

diffs (137 lines):

diff -r 980f7852aea1 -r 55bfebd569c4 sys/arch/vax/vax/autoconf.c
--- a/sys/arch/vax/vax/autoconf.c       Thu Mar 03 06:28:04 2022 +0000
+++ b/sys/arch/vax/vax/autoconf.c       Thu Mar 03 06:28:26 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.99 2021/08/07 16:19:07 thorpej Exp $    */
+/*     $NetBSD: autoconf.c,v 1.100 2022/03/03 06:28:26 riastradh Exp $ */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.99 2021/08/07 16:19:07 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.100 2022/03/03 06:28:26 riastradh Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_cputype.h"
@@ -173,7 +173,7 @@
 
        KASSERT(device_private(self) == NULL);
        ci = curcpu();
-       self->dv_private = ci;
+       device_set_private(self, ci);
        ci->ci_dev = self;
        ci->ci_cpuid = device_unit(self);
 
diff -r 980f7852aea1 -r 55bfebd569c4 sys/arch/vax/vax/ka6400.c
--- a/sys/arch/vax/vax/ka6400.c Thu Mar 03 06:28:04 2022 +0000
+++ b/sys/arch/vax/vax/ka6400.c Thu Mar 03 06:28:26 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ka6400.c,v 1.20 2019/12/01 15:34:46 ad Exp $   */
+/*     $NetBSD: ka6400.c,v 1.21 2022/03/03 06:28:26 riastradh Exp $    */
 
 /*
  * Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ka6400.c,v 1.20 2019/12/01 15:34:46 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ka6400.c,v 1.21 2022/03/03 06:28:26 riastradh Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -146,7 +146,7 @@
        mtpr(0, PR_VPSR); /* Can't use vector processor */
 
        ci = curcpu();
-       self->dv_private = ci;
+       device_set_private(self, ci);
        ci->ci_dev = self;
        ci->ci_cpuid = device_unit(self);
        ci->ci_slotid = xa->xa_nodenr;
diff -r 980f7852aea1 -r 55bfebd569c4 sys/arch/vax/vax/ka820.c
--- a/sys/arch/vax/vax/ka820.c  Thu Mar 03 06:28:04 2022 +0000
+++ b/sys/arch/vax/vax/ka820.c  Thu Mar 03 06:28:26 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ka820.c,v 1.57 2019/12/01 15:34:46 ad Exp $    */
+/*     $NetBSD: ka820.c,v 1.58 2022/03/03 06:28:26 riastradh Exp $     */
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ka820.c,v 1.57 2019/12/01 15:34:46 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ka820.c,v 1.58 2022/03/03 06:28:26 riastradh Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -169,8 +169,8 @@
 #endif
 
        ci = curcpu();
-       self->dv_private = ci;  /* eww. but curcpu() is already too */
-                               /* entrenched to change */
+       device_set_private(self, ci);   /* eww. but curcpu() is already too */
+                                       /* entrenched to change */
        ci->ci_slotid = ba->ba_nodenr;
        ci->ci_cpuid = device_unit(self);
        ci->ci_dev = self;
diff -r 980f7852aea1 -r 55bfebd569c4 sys/arch/vax/vax/ka88.c
--- a/sys/arch/vax/vax/ka88.c   Thu Mar 03 06:28:04 2022 +0000
+++ b/sys/arch/vax/vax/ka88.c   Thu Mar 03 06:28:26 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ka88.c,v 1.20 2019/12/01 15:34:46 ad Exp $     */
+/*     $NetBSD: ka88.c,v 1.21 2022/03/03 06:28:26 riastradh Exp $      */
 
 /*
  * Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ka88.c,v 1.20 2019/12/01 15:34:46 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ka88.c,v 1.21 2022/03/03 06:28:26 riastradh Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -149,7 +149,7 @@
                return;
        }
        ci = curcpu();
-       self->dv_private = ci;
+       device_set_private(self, ci);
        ci->ci_dev = self;
        ci->ci_cpuid = device_unit(self);
        ci->ci_slotid = na->na_slot;
diff -r 980f7852aea1 -r 55bfebd569c4 sys/arch/vax/vax/multicpu.c
--- a/sys/arch/vax/vax/multicpu.c       Thu Mar 03 06:28:04 2022 +0000
+++ b/sys/arch/vax/vax/multicpu.c       Thu Mar 03 06:28:26 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: multicpu.c,v 1.36 2020/11/21 22:37:11 thorpej Exp $    */
+/*     $NetBSD: multicpu.c,v 1.37 2022/03/03 06:28:26 riastradh Exp $  */
 
 /*
  * Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: multicpu.c,v 1.36 2020/11/21 22:37:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: multicpu.c,v 1.37 2022/03/03 06:28:26 riastradh Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -87,7 +87,7 @@
        KASSERT(device_private(self) == NULL);
 
        ci = kmem_zalloc(sizeof(*ci), KM_SLEEP);
-       self->dv_private = ci;
+       device_set_private(self, ci);
        ci->ci_dev = self;
        ci->ci_slotid = slotid;
        ci->ci_cpuid = device_unit(self);



Home | Main Index | Thread Index | Old Index