Module Name: src
Committed By: skrll
Date: Thu May 25 06:17:18 UTC 2023
Modified Files:
src/sys/arch/riscv/include: cpu.h
Log Message:
Fix CLKF_INTR so that not all time is shown as being spent in interrupts.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/riscv/include/cpu.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/riscv/include/cpu.h
diff -u src/sys/arch/riscv/include/cpu.h:1.10 src/sys/arch/riscv/include/cpu.h:1.11
--- src/sys/arch/riscv/include/cpu.h:1.10 Sun May 7 12:41:48 2023
+++ src/sys/arch/riscv/include/cpu.h Thu May 25 06:17:18 2023
@@ -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>