Module Name: src Committed By: jmcneill Date: Thu Dec 15 03:42:33 UTC 2011
Modified Files: src/sys/arch/usermode/dev: clock.c cpu.c src/sys/arch/usermode/include: thunk.h src/sys/arch/usermode/usermode: thunk.c Log Message: Improve usermode timecounter. It's unreasonable to assume that we'll get 100 "SIGALRM" per second with an ITIMER_REAL at 100Hz on a HZ=100 host as the timer may expire before a pending signal has been delivered. Instead of setitimer, use timer_create + timer_settime and from our intr handler use timer_getoverrun to determine how many ticks we have missed. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/usermode/dev/clock.c cvs rdiff -u -r1.54 -r1.55 src/sys/arch/usermode/dev/cpu.c cvs rdiff -u -r1.40 -r1.41 src/sys/arch/usermode/include/thunk.h cvs rdiff -u -r1.46 -r1.47 src/sys/arch/usermode/usermode/thunk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.