Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/include Make CLKF_INTR() slightly less broken. ...
details: https://anonhg.NetBSD.org/src/rev/632ede59dd6a
branches: trunk
changeset: 526623:632ede59dd6a
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue May 07 04:01:59 2002 +0000
description:
Make CLKF_INTR() slightly less broken. The previous definition always
tested true if the CPU was running in the kernel at the time of the clock
interrupt, therefore all such time (kernel and idle) was counted as interrupt
time. The new definition simply punts on trying to count interrupt time,
which allows us to see kernel and idle time.
diffstat:
sys/arch/sh3/include/cpu.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r f87b2547fc43 -r 632ede59dd6a sys/arch/sh3/include/cpu.h
--- a/sys/arch/sh3/include/cpu.h Tue May 07 03:34:16 2002 +0000
+++ b/sys/arch/sh3/include/cpu.h Tue May 07 04:01:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.28 2002/04/28 17:10:34 uch Exp $ */
+/* $NetBSD: cpu.h,v 1.29 2002/05/07 04:01:59 thorpej Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@@ -94,7 +94,7 @@
#define CLKF_USERMODE(cf) (!KERNELMODE((cf)->ssr))
#define CLKF_BASEPRI(cf) (((cf)->ssr & 0xf0) == 0)
#define CLKF_PC(cf) ((cf)->spc)
-#define CLKF_INTR(cf) ((cf)->ssp < 0)
+#define CLKF_INTR(cf) 0 /* XXX */
/*
* This is used during profiling to integrate system time. It can safely
Home |
Main Index |
Thread Index |
Old Index