git: 3aed0ffc1588 - main - kern/clock: remove interrupt reporting from watchdog_fire()

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Thu, 16 Feb 2023 21:28:30 UTC
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=3aed0ffc15881c5cf3fc0824dad037accc960dcb

commit 3aed0ffc15881c5cf3fc0824dad037accc960dcb
Author:     Elliott Mitchell <ehem+freebsd@m5p.com>
AuthorDate: 2023-02-16 21:18:54 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-02-16 21:24:29 +0000

    kern/clock: remove interrupt reporting from watchdog_fire()
    
    The interrupt counts may have been valuable in the past, but now DDB can
    readily provide them via 'show intrcnt'. This is one of the only
    consumers of these counter arrays outside of the interrupt code itself,
    and this should be avoided.
    
    Reviewed by:    mhorne, fuz
    Differential Revision: https://reviews.freebsd.org/D37870
---
 sys/kern/kern_clock.c | 21 +--------------------
 1 file changed, 1 insertion(+), 20 deletions(-)

diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index b8122b7d6468..1670b6fde0c4 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -828,30 +828,11 @@ watchdog_config(void *unused __unused, u_int cmd, int *error)
 }
 
 /*
- * Handle a watchdog timeout by dumping interrupt information and
- * then either dropping to DDB or panicking.
+ * Handle a watchdog timeout by dropping to DDB or panicking.
  */
 static void
 watchdog_fire(void)
 {
-	int nintr;
-	uint64_t inttotal;
-	u_long *curintr;
-	char *curname;
-
-	curintr = intrcnt;
-	curname = intrnames;
-	inttotal = 0;
-	nintr = sintrcnt / sizeof(u_long);
-
-	printf("interrupt                   total\n");
-	while (--nintr >= 0) {
-		if (*curintr)
-			printf("%-12s %20lu\n", curname, *curintr);
-		curname += strlen(curname) + 1;
-		inttotal += *curintr++;
-	}
-	printf("Total        %20ju\n", (uintmax_t)inttotal);
 
 #if defined(KDB) && !defined(KDB_UNATTENDED)
 	kdb_backtrace();