summaryrefslogtreecommitdiff
path: root/src/ps2comm.c
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman@collabora.co.uk>2011-03-31 14:29:43 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-25 09:50:33 +1000
commit458c7251295e767fae7a0ac3366212361bce25a6 (patch)
tree190c8814b4fea40e1f0f92ca8d2182f22aeef310 /src/ps2comm.c
parent495e0fe1b7afa9de04ee0341da1ade4d3d4f50b8 (diff)
Use hardware time where possible
Rather than always setting hw->millis as the time when we received the event in our SIGIO handler, use the time provided by the kernel if applicable (i.e. if we're using evdev rather than PS/2 or similar). Signed-off-by: Derek Foreman <derek.foreman@collabora.co.uk> Reviewed-by: Daniel Stone <daniel@fooishbar.org> [from_timer is in preparation for a future patch, currently unused] Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/ps2comm.c')
-rw-r--r--src/ps2comm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ps2comm.c b/src/ps2comm.c
index 0bbae9b..3178175 100644
--- a/src/ps2comm.c
+++ b/src/ps2comm.c
@@ -647,7 +647,7 @@ PS2ReadHwStateProto(InputInfoPtr pInfo,
break;
}
}
-
+ hw->millis = GetTimeInMillis();
*hwRet = *hw;
return TRUE;
}