[PATCH resent] configure: introduce --{enable, disable}-syscall-clock

Dan Nicholson dbn.lists at gmail.com
Fri Apr 16 14:35:42 PDT 2010


On Fri, Apr 16, 2010 at 12:39 PM, Eric Anholt <eric at anholt.net> wrote:
> On Fri, 16 Apr 2010 15:10:19 +0300, Tiago Vignatti <tiago.vignatti at nokia.com> wrote:
>> Some Linux systems might not want to link against rt and pthread libraries
>> simply to implement monotonic clock (GetTimeInMillis). For those, use a direct
>> syscall instead. This is discouraged if someone doesn't know what's doing.
>>
>> This patch keeps the new syscall version disabled by default - therefore not
>> changing the original behaviour of the xserver build.
>>
>> One, using this patch, should worry about a possible performance degradation
>> due it's not going through optimized code in C library. Therefore, the simple
>> program bellow (kudos to Adam Jackson) should performs equally in the practice,
>> for both syscall and C library implementation:
>
> I don't think we should do this until we've exhausted the avenue of
> getting the call moved into glibc.

It would be great to have it moved into libc, but even if you do
(glibc development is not exactly pleasant) you'll have to wait quite
a bit of time until it gets into widespread distribution. So, people
would still be wanting to use this hack for quite some time even if
the glibc change was agreed on today.

Someone should try to bring it up, though.

--
Dan


More information about the xorg-devel mailing list