Thread (8 messages) 8 messages, 3 authors, 2012-01-06

Re: [RFC][PATCH] Input: Add infrastrucutre for monotonic event time stamps.

From: John Stultz <hidden>
Date: 2012-01-05 23:52:32

On Thu, 2012-01-05 at 15:28 -0800, Dmitry Torokhov wrote:
Hi John,

On Thu, Jan 05, 2012 at 03:01:05PM -0800, John Stultz wrote:
quoted
 
+	case EVIOCMONTIME:
+		if (copy_from_user(&i, p, sizeof(unsigned int)))
+			return -EFAULT;
+		client->use_monotonic = i;
+		return 0;
Maybe we should let users pass not boolean but CLOCK_* value (and reject
ones that we do not support) ? This way if someone wants to use some
other clock type in the future we won't need new ioctl.
That sounds like a good idea. 
Otherwise any conceptual issues with the patch?

Arve: If this is something we can get upstream, do you see any
complications in getting the Android evdev user to use this IOCTL to
change the timestamp mode?

thanks
-john

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help