2338d5c991
The smart scheduler itimer currently always fires after each request (which in turn causes the CPU to wake out of idle, burning precious power). Rather than doing this, just stop the timer before going into the select() portion of the WaitFor loop. It's a cheap system call, and it will only get called if there's no more commands batched up from the active fd. This change also allows some of the functions to be simplified; setitimer() will only fail if it's passed invalid data, and we don't do that... so make it void and remove all the conditional code that deals with failure. The change also allows us to remove a few variables that were used for housekeeping between the signal handler and the main loop. Signed-off-by: Keith Packard <keithp@koto.keithp.com> |
||
---|---|---|
.. | ||
access.c | ||
auth.c | ||
connection.c | ||
io.c | ||
log.c | ||
Makefile.am | ||
mitauth.c | ||
oscolor.c | ||
oscolor.h | ||
osdep.h | ||
osinit.c | ||
rpcauth.c | ||
secauth.c | ||
strlcat.c | ||
strlcpy.c | ||
utils.c | ||
WaitFor.c | ||
xalloc.c | ||
xdmauth.c | ||
xdmcp.c | ||
xprintf.c | ||
xstrans.c |