Re: [RFC][PATCH] Input: Add infrastrucutre for monotonic event time stamps.
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2012-01-05 23:29:01
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2012-01-05 23:29:01
Hi John, On Thu, Jan 05, 2012 at 03:01:05PM -0800, John Stultz wrote:
+ 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. Thanks. -- Dmitry