summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_meter.c
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-06-01 13:23:28 +0000
committertmm <tmm@FreeBSD.org>2001-06-01 13:23:28 +0000
commit9ce8a6234736b0446ecc22b1092f693c658a25be (patch)
treedfa10a376890935609a85e9cf3ff54855c2ff66c /sys/vm/vm_meter.c
parent831472121170bbeebce019cd7be85fb15d34bd31 (diff)
downloadFreeBSD-src-9ce8a6234736b0446ecc22b1092f693c658a25be.zip
FreeBSD-src-9ce8a6234736b0446ecc22b1092f693c658a25be.tar.gz
Clean up the code exporting interrupt statistics via sysctl a bit:
- move the sysctl code to kern_intr.c - do not use INTRCNT_COUNT, but rather eintrcnt - intrcnt to determine the length of the intrcnt array - move the declarations of intrnames, eintrnames, intrcnt and eintrcnt from machine-dependent include files to sys/interrupt.h - remove the hw.nintr sysctl, it is not needed. - fix various style bugs Requested by: bde Reviewed by: bde (some time ago)
Diffstat (limited to 'sys/vm/vm_meter.c')
-rw-r--r--sys/vm/vm_meter.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/vm/vm_meter.c b/sys/vm/vm_meter.c
index 0f4e107..24af2ec 100644
--- a/sys/vm/vm_meter.c
+++ b/sys/vm/vm_meter.c
@@ -363,33 +363,3 @@ SYSCTL_INT(_vm_stats_misc, OID_AUTO,
SYSCTL_INT(_vm_stats_misc, OID_AUTO,
vm_page_hash_mask, CTLFLAG_RD, &vm_page_hash_mask, 0, "");
#endif
-
-/*
- * Further sysctls used by systat: hw.nintr, hw.intrnames, hw.intrcnt.
- * This does probably not really fit in here, but it is somehow connected.
- * The definitions for this are machdep, but are currently defined for
- * any architecture.
- */
-
-/* include the machdep stuff */
-#include <machine/intrcnt.h>
-
-int nintr = INTRCNT_COUNT;
-SYSCTL_INT(_hw, OID_AUTO, nintr, CTLFLAG_RD, &nintr, 0, "Number of Interrupts");
-
-SYSCTL_OPAQUE(_hw, OID_AUTO, intrcnt, CTLFLAG_RD, &intrcnt,
- sizeof(long) * INTRCNT_COUNT, "", "Interrupt Counts");
-
-/*
- * We do not know the length in advance (in an MI fashion), so calculate things
- * at run-time.
- */
-static int
-sysctl_intrnames(SYSCTL_HANDLER_ARGS)
-{
- return sysctl_handle_opaque(oidp, intrnames, eintrnames - intrnames,
- req);
-}
-
-SYSCTL_PROC(_hw, OID_AUTO, intrnames, CTLTYPE_OPAQUE | CTLFLAG_RD, NULL, 0,
- sysctl_intrnames, "", "Interrupt Names");
OpenPOWER on IntegriCloud