From ccd5dd67feee1e473427441d8ccdebcb6a5c4bfb Mon Sep 17 00:00:00 2001 From: riastradh Date: Thu, 3 Mar 2022 06:26:14 +0000 Subject: arc: Use device_set_private for cpuN. --- sys/arch/arc/arc/cpu.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/arch/arc/arc/cpu.c b/sys/arch/arc/arc/cpu.c index c05c418ac06..1560bcfd697 100644 --- a/sys/arch/arc/arc/cpu.c +++ b/sys/arch/arc/arc/cpu.c @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.c,v 1.20 2015/06/24 06:19:52 matt Exp $ */ +/* $NetBSD: cpu.c,v 1.21 2022/03/03 06:26:14 riastradh Exp $ */ /* $OpenBSD: cpu.c,v 1.8 1997/04/19 17:19:41 pefo Exp $ */ /* @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.20 2015/06/24 06:19:52 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.21 2022/03/03 06:26:14 riastradh Exp $"); #include #include @@ -71,11 +71,10 @@ cpumatch(device_t parent, cfdata_t cf, void *aux) static void cpuattach(device_t parent, device_t self, void *aux) { - struct cpu_info * const ci = curcpu(); ci->ci_dev = self; - self->dv_private = ci; + device_set_private(self, ci); aprint_normal(": "); -- cgit