Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Handle IPI_KPREEMPT



details:   https://anonhg.NetBSD.org/src/rev/5a616e8cefc7
branches:  trunk
changeset: 936236:5a616e8cefc7
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jul 22 15:00:49 2020 +0000

description:
Handle IPI_KPREEMPT

diffstat:

 sys/arch/mips/mips/ipifuncs.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r a054644443da -r 5a616e8cefc7 sys/arch/mips/mips/ipifuncs.c
--- a/sys/arch/mips/mips/ipifuncs.c     Wed Jul 22 13:24:17 2020 +0000
+++ b/sys/arch/mips/mips/ipifuncs.c     Wed Jul 22 15:00:49 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipifuncs.c,v 1.13 2019/12/01 15:34:44 ad Exp $ */
+/*     $NetBSD: ipifuncs.c,v 1.14 2020/07/22 15:00:49 jmcneill Exp $   */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.13 2019/12/01 15:34:44 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.14 2020/07/22 15:00:49 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -152,6 +152,12 @@
                ci->ci_evcnt_per_ipi[IPI_GENERIC].ev_count++;
                ipi_cpu_handler();
        }
+#ifdef __HAVE_PREEMPTION
+       if (ipi_mask & __BIT(IPI_KPREEMPT)) {
+               ci->ci_evcnt_per_ipi[IPI_KPREEMPT].ev_count++;
+               ipi_kpreempt(ci);
+       }
+#endif
 }
 
 void



Home | Main Index | Thread Index | Old Index