Input: evdev - flush pending events on clock type change
authorAnshul Garg <aksgarg1989@gmail.com>
Thu, 15 Jan 2015 17:06:50 +0000 (09:06 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 15 Jan 2015 17:37:18 +0000 (09:37 -0800)
commit0c3e99437a66e4c869c60c2398449e6d98f3a988
treeea08036a9336f06266a0abcdb4a36d4c35ae8675
parent34412ba28232e8b3b4955a4bbe53c9df4c7b2d1a
Input: evdev - flush pending events on clock type change

When client changes the type of clock used for the time stamps in input
events flush pending events from the client's queue (since client would not
know which events have old time stamps and which ones have new ones) and
and queue SYN_DROPPED event.

Signed-off-by: Anshul Garg <anshul.g@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/evdev.c