Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm Add a pic_cpus to the softc which specifies whi...



details:   https://anonhg.NetBSD.org/src/rev/58e2fa01bde8
branches:  trunk
changeset: 337333:58e2fa01bde8
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Apr 11 16:47:47 2015 +0000

description:
Add a pic_cpus to the softc which specifies which cpus the pic can send
IPIs to.  For GIC, initialize pic_cpus to kcpuset_running since it can handle
all the cpus.

diffstat:

 sys/arch/arm/cortex/gic.c |  7 +++++--
 sys/arch/arm/pic/picvar.h |  5 ++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r adc8143837e4 -r 58e2fa01bde8 sys/arch/arm/cortex/gic.c
--- a/sys/arch/arm/cortex/gic.c Sat Apr 11 16:32:07 2015 +0000
+++ b/sys/arch/arm/cortex/gic.c Sat Apr 11 16:47:47 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gic.c,v 1.17 2015/04/09 00:38:29 matt Exp $    */
+/*     $NetBSD: gic.c,v 1.18 2015/04/11 16:47:47 matt Exp $    */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -34,7 +34,7 @@
 #define _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.17 2015/04/09 00:38:29 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.18 2015/04/11 16:47:47 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -569,6 +569,9 @@
            "%zu sources (%zu valid)\n",
            sc->sc_pic.pic_maxsources, sc->sc_gic_lines);
 
+#ifdef MULTIPROCESSOR
+       sc->sc_pic.pic_cpus = kcpuset_running;
+#endif
        pic_add(&sc->sc_pic, 0);
 
        /*
diff -r adc8143837e4 -r 58e2fa01bde8 sys/arch/arm/pic/picvar.h
--- a/sys/arch/arm/pic/picvar.h Sat Apr 11 16:32:07 2015 +0000
+++ b/sys/arch/arm/pic/picvar.h Sat Apr 11 16:47:47 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: picvar.h,v 1.13 2015/04/09 06:03:43 matt Exp $ */
+/*     $NetBSD: picvar.h,v 1.14 2015/04/11 16:47:47 matt Exp $ */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -130,6 +130,9 @@
        volatile uint32_t pic_blocked_irqs[(PIC_MAXSOURCES + 31) / 32];
        volatile uint32_t pic_pending_ipls;
 #endif
+#ifdef MULTIPROCESSOR
+       kcpuset_t *pic_cpus;
+#endif
        size_t pic_maxsources;
        percpu_t *pic_percpu;
        uint8_t pic_id;



Home | Main Index | Thread Index | Old Index