FreeBSD Bugzilla – Attachment 221720 Details for
Bug 252816
x11-servers/xorg-server: patch to utilize CLOCK_MONOTONIC_FAST for the clock
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to x11-servers/xorg-server
x11-servers_xorg-server.diff (text/plain), 1.52 KB, created by
Sean Farley
on 2021-01-18 22:48:37 UTC
(
hide
)
Description:
Patch to x11-servers/xorg-server
Filename:
MIME Type:
Creator:
Sean Farley
Created:
2021-01-18 22:48:37 UTC
Size:
1.52 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 561604) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME?= xorg-server > PORTVERSION?= 1.20.9 >-PORTREVISION?= 1 >+PORTREVISION?= 2 > PORTEPOCH?= 1 > CATEGORIES= x11-servers > MASTER_SITES= XORG/individual/xserver >Index: files/patch-os_utils.c >=================================================================== >--- files/patch-os_utils.c (nonexistent) >+++ files/patch-os_utils.c (working copy) >@@ -0,0 +1,18 @@ >+--- os/utils.c.orig 2014-04-15 01:01:57 UTC >++++ os/utils.c >+@@ -443,11 +443,11 @@ GetTimeInMillis(void) >+ static clockid_t clockid; >+ >+ if (!clockid) { >+-#ifdef CLOCK_MONOTONIC_COARSE >+- if (clock_getres(CLOCK_MONOTONIC_COARSE, &tp) == 0 && >++#ifdef CLOCK_MONOTONIC_FAST >++ if (clock_getres(CLOCK_MONOTONIC_FAST, &tp) == 0 && >+ (tp.tv_nsec / 1000) <= 1000 && >+- clock_gettime(CLOCK_MONOTONIC_COARSE, &tp) == 0) >+- clockid = CLOCK_MONOTONIC_COARSE; >++ clock_gettime(CLOCK_MONOTONIC_FAST, &tp) == 0) >++ clockid = CLOCK_MONOTONIC_FAST; >+ else >+ #endif >+ if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) > >Property changes on: files/patch-os_utils.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252816
: 221720