Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/include Fix CLKF_INTR so that not all time is...



details:   https://anonhg.NetBSD.org/src/rev/62ab58d74d3a
branches:  trunk
changeset: 375993:62ab58d74d3a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu May 25 06:17:18 2023 +0000

description:
Fix CLKF_INTR so that not all time is shown as being spent in interrupts.

diffstat:

 sys/arch/riscv/include/cpu.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 38f3a0498518 -r 62ab58d74d3a sys/arch/riscv/include/cpu.h
--- a/sys/arch/riscv/include/cpu.h      Thu May 25 01:31:27 2023 +0000
+++ b/sys/arch/riscv/include/cpu.h      Thu May 25 06:17:18 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.10 2023/05/07 12:41:48 skrll Exp $ */
+/* $NetBSD: cpu.h,v 1.11 2023/05/25 06:17:18 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@ struct clockframe {
 
 #define CLKF_USERMODE(cf)      (((cf)->cf_status & SR_SPP) == 0)
 #define CLKF_PC(cf)            ((cf)->cf_epc)
-#define CLKF_INTR(cf)          ((cf)->cf_intr_depth > 0)
+#define CLKF_INTR(cf)          ((cf)->cf_intr_depth > 1)
 
 #include <sys/cpu_data.h>
 #include <sys/device_if.h>



Home | Main Index | Thread Index | Old Index