From: Takashi Iwai Date: Thu, 11 Sep 2014 17:28:30 +0000 (-0700) Subject: Input: joystick - use ktime for measuring timing X-Git-Tag: fixes-for-v3.18-merge-window~26^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76460a7becadbda5589057ee8394cbc98717c324;p=pandora-kernel.git Input: joystick - use ktime for measuring timing The current codes in gameport and analog joystick drivers for the time accounting have a long-standing problem when the system is running with CPU freq; since the timing is measured via TSC or sample counter, the calculation isn't reliable. In this patch, as a simple fix, use the standard ktime to measure the timing. In case where no high resolution timer is available, use_ktime bool option is provided to both modules. Setting use_ktime=false switches to the old methods. Tested-by: Clemens Ladisch Signed-off-by: Takashi Iwai Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed