[PATCH libinput] evdev: set CLOCK_MONOTONIC as the time source

Rui Tiago Cação Matos tiagomatos at gmail.com
Wed Feb 19 10:19:15 PST 2014


On 19 February 2014 13:35, Daniel Stone <daniel at fooishbar.org> wrote:
> Can this be CLOCK_MONOTONIC_COARSE instead, to avoid griefing HPET and
> thus causing much higher power usage?

Makes sense and indeed the X server seems to use _COARSE if it's
available and has good enough resolution:

http://cgit.freedesktop.org/xorg/xserver/tree/os/utils.c#n440

Perhaps libevdev should do something like that too?

Rui


More information about the wayland-devel mailing list