lkml.org 
[lkml]   [2004]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Date
From
SubjectRe: [patch] context-switching overhead in X, ioport(), 2.6.8.1
> Xorg and XFree assume the kernel will have intelligent limits. When the
> range went up the EnableIO code in turn switched to ioperm.

Which was the wrong thing to do since it is slower.

>
> The actual code is:
>
> if (ioperm(0, 1024, 1) || iopl(3))
> FatalError("xf86EnableIOPorts: Failed to set IOPL for
> I/O\n")
>
> (os-support/linux/lnx_video.c:xf86EnableIO)
>
> Flip those around and rebuild.

It would be better to do that in the official release.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.037 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site