Date: Tue, 21 Oct 2008 19:02:24 +0400 From: pluknet <pluknet@gmail.com> To: "FreeBSD Current" <freebsd-current@freebsd.org>, "John Baldwin" <jhb@freebsd.org> Subject: (possible) mis-merge of per-cpu stats to 6.x Message-ID: <a31046fc0810210802m2ea2a290gbafbf7df4995df4b@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi! It seems that after John's partial backup to restore 6.x ABI read_cpu_time() became useless. It's no more called from sysctl_kern_cp_time(). wbr, pluknet --- kern_clock.c.orig Tue Oct 21 18:56:09 2008 +++ kern_clock.c Tue Oct 21 18:57:12 2008 @@ -91,9 +91,7 @@ sysctl_kern_cp_time(SYSCTL_HANDLER_ARGS) #ifdef SCTL_MASK32 int i; unsigned int cp_time32[CPUSTATES]; -#endif -#ifdef SCTL_MASK32 if (req->flags & SCTL_MASK32) { if (!req->oldptr) return SYSCTL_OUT(req, 0, sizeof(cp_time32)); @@ -156,23 +154,6 @@ sysctl_kern_cp_times(SYSCTL_HANDLER_ARGS SYSCTL_PROC(_kern, OID_AUTO, cp_times, CTLTYPE_LONG|CTLFLAG_RD, 0,0, sysctl_kern_cp_times, "LU", "per-CPU time statistics"); - -void -read_cpu_time(long *cp_time) -{ - struct pcpu *pc; - int i, j; - - /* Sum up global cp_time[]. */ - bzero(cp_time, sizeof(long) * CPUSTATES); - for (i = 0; i <= mp_maxid; i++) { - if (CPU_ABSENT(i)) - continue; - pc = pcpu_find(i); - for (j = 0; j < CPUSTATES; j++) - cp_time[j] += pc->pc_cp_time[j]; - } -} #ifdef SW_WATCHDOG #include <sys/watchdog.h> EOF
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0810210802m2ea2a290gbafbf7df4995df4b>