Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa fix off by one which resulted in all idle...



details:   https://anonhg.NetBSD.org/src/rev/45f973a7a24c
branches:  trunk
changeset: 380029:45f973a7a24c
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Jul 01 22:57:45 2021 +0000

description:
fix off by one which resulted in all idle time reported as interrupt time
final fix from nick@

diffstat:

 sys/arch/hppa/hppa/intr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dbeea38ccc6e -r 45f973a7a24c sys/arch/hppa/hppa/intr.c
--- a/sys/arch/hppa/hppa/intr.c Thu Jul 01 22:08:13 2021 +0000
+++ b/sys/arch/hppa/hppa/intr.c Thu Jul 01 22:57:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.3 2019/05/04 13:04:36 skrll Exp $   */
+/*     $NetBSD: intr.c,v 1.4 2021/07/01 22:57:45 macallan Exp $        */
 /*     $OpenBSD: intr.c,v 1.27 2009/12/31 12:52:35 jsing Exp $ */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.3 2019/05/04 13:04:36 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.4 2021/07/01 22:57:45 macallan Exp $");
 
 #define __MUTEX_PRIVATE
 
@@ -435,7 +435,7 @@ hppa_intr_dispatch(int ncpl, int eiem, s
                ib->ib_evcnt.ev_count++;
                arg = ib->ib_arg;
                if (arg == NULL) {
-                       clkframe.cf_flags = (ci->ci_intr_depth ?
+                       clkframe.cf_flags = (ci->ci_intr_depth > 1 ?
                            TFF_INTR : 0);
                        clkframe.cf_spl = ncpl;
                        if (frame != NULL) {



Home | Main Index | Thread Index | Old Index