xserver-multidpi/os
Arjan van de Ven 2338d5c991 reduce wakeups from smart scheduler
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>
2007-10-30 11:18:56 -07:00
..
access.c mass change from #ifdef i386 to #ifdef __i386__ to conform to ANSI 2007-10-14 18:07:03 -07:00
auth.c Remove the old Kerberos 5 authentication code. 2007-06-04 18:07:00 -04:00
connection.c Rework local client id finding code to be more uniform 2007-09-27 16:47:32 -07:00
io.c mass change from #ifdef i386 to #ifdef __i386__ to conform to ANSI 2007-10-14 18:07:03 -07:00
log.c Remove the remnants of OS/2 support. 2007-06-28 18:59:05 -04:00
Makefile.am Actually build Secure RPC authentication support (missed in modularization) 2007-08-17 15:29:47 -07:00
mitauth.c Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
oscolor.c Remove the remnants of OS/2 support. 2007-06-28 18:59:05 -04:00
oscolor.h Add oscolor.h 2006-02-16 19:36:39 +00:00
osdep.h Bug #7186: Fix an excessive request size limitation that broke big-requests. 2007-08-31 13:09:45 -07:00
osinit.c Remove the remnants of OS/2 support. 2007-06-28 18:59:05 -04:00
rpcauth.c Actually build Secure RPC authentication support (missed in modularization) 2007-08-17 15:29:47 -07:00
secauth.c Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
strlcat.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
strlcpy.c Death to RCS tags. 2007-06-29 14:06:52 -04:00
utils.c reduce wakeups from smart scheduler 2007-10-30 11:18:56 -07:00
WaitFor.c reduce wakeups from smart scheduler 2007-10-30 11:18:56 -07:00
xalloc.c mass change from #ifdef i386 to #ifdef __i386__ to conform to ANSI 2007-10-14 18:07:03 -07:00
xdmauth.c Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
xdmcp.c General DIX static and dead code cleanup. 2007-03-25 17:57:54 -04:00
xprintf.c Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h". 2005-07-03 08:53:54 +00:00
xstrans.c Change HAVE_CONFIG_H to HAVE_DIX_CONFIG_H. 2005-07-03 12:16:29 +00:00