Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/pic Improve a comment
details: https://anonhg.NetBSD.org/src/rev/d8071a3891ae
branches: trunk
changeset: 1015580:d8071a3891ae
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Oct 26 07:16:41 2020 +0000
description:
Improve a comment
diffstat:
sys/arch/arm/pic/pic.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r 7b2a7d3e3d58 -r d8071a3891ae sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c Mon Oct 26 07:14:42 2020 +0000
+++ b/sys/arch/arm/pic/pic.c Mon Oct 26 07:16:41 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pic.c,v 1.59 2020/10/26 07:14:42 skrll Exp $ */
+/* $NetBSD: pic.c,v 1.60 2020/10/26 07:16:41 skrll Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -33,7 +33,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.59 2020/10/26 07:14:42 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.60 2020/10/26 07:16:41 skrll Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -203,11 +203,19 @@
if (pic == NULL || pic->pic_cpus == NULL)
continue;
if (kcp == NULL || kcpuset_intersecting_p(kcp, pic->pic_cpus)) {
- // never send to ourself
+ /*
+ * Never send to ourself.
+ *
+ * This test uses pointer comparison for systems
+ * that have a pic per cpu, e.g. RPI[23]. GIC sets
+ * pic_cpus to kcpuset_running and handles "not for
+ * self" internally.
+ */
if (pic->pic_cpus == ci->ci_kcpuset)
continue;
(*pic->pic_ops->pic_ipi_send)(pic, kcp, ipi);
+
/*
* If we were targeting a single CPU or this pic
* handles all cpus, we're done.
Home |
Main Index |
Thread Index |
Old Index