From owner-cvs-usrbin Thu May 28 02:38:17 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA10329 for cvs-usrbin-outgoing; Thu, 28 May 1998 02:38:17 -0700 (PDT) (envelope-from owner-cvs-usrbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA09807; Thu, 28 May 1998 02:36:07 -0700 (PDT) (envelope-from phk@FreeBSD.org) From: Poul-Henning Kamp Received: (from phk@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA21352; Thu, 28 May 1998 02:30:30 -0700 (PDT) Date: Thu, 28 May 1998 02:30:30 -0700 (PDT) Message-Id: <199805280930.CAA21352@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG, cvs-usrbin@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/bin/ps print.c src/usr.bin/top machine.c src/sys/ddb db_print.c src/sys/i386/i386 exception.s genassym.c globals.s machdep.c swtch.s src/sys/i386/include globaldata.h src/sys/i386/isa clock.c src/sys/kern init_main.c kern_clock.c ... Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk phk 1998/05/28 02:30:29 PDT Modified files: bin/ps print.c usr.bin/top machine.c sys/ddb db_print.c sys/i386/i386 exception.s genassym.c globals.s machdep.c swtch.s sys/i386/include globaldata.h sys/i386/isa clock.c sys/kern init_main.c kern_clock.c kern_resource.c kern_synch.c subr_log.c subr_prf.c sys/sys msgbuf.h proc.h resourcevar.h time.h Log: Some cleanups related to timecounters and weird ifdefs in . Clean up (or if antipodic: down) some of the msgbuf stuff. Use an inline function rather than a macro for timecounter delta. Maintain process "on-cpu" time as 64 bits of microseconds to avoid needless second rollover overhead. Avoid calling microuptime the second time in mi_switch() if we do not pass through _idle in cpu_switch() This should reduce our context-switch overhead a bit, in particular on pre-P5 and SMP systems. WARNING: Programs which muck about with struct proc in userland will have to be fixed. Reviewed, but found imperfect by: bde Revision Changes Path 1.27 +14 -14 src/bin/ps/print.c 1.10 +3 -3 src/usr.bin/top/machine.c 1.17 +1 -27 src/sys/ddb/db_print.c 1.53 +2 -2 src/sys/i386/i386/exception.s 1.58 +3 -2 src/sys/i386/i386/genassym.c 1.5 +3 -2 src/sys/i386/i386/globals.s 1.297 +2 -11 src/sys/i386/i386/machdep.c 1.74 +5 -1 src/sys/i386/i386/swtch.s 1.5 +2 -1 src/sys/i386/include/globaldata.h 1.121 +3 -3 src/sys/i386/isa/clock.c 1.93 +7 -5 src/sys/kern/init_main.c 1.70 +16 -11 src/sys/kern/kern_clock.c 1.37 +14 -11 src/sys/kern/kern_resource.c 1.57 +16 -28 src/sys/kern/kern_synch.c 1.29 +1 -4 src/sys/kern/subr_log.c 1.46 +45 -4 src/sys/kern/subr_prf.c 1.11 +9 -6 src/sys/sys/msgbuf.h 1.58 +4 -3 src/sys/sys/proc.h 1.12 +2 -1 src/sys/sys/resourcevar.h 1.29 +4 -4 src/sys/sys/time.h