WSL2-Linux-Kernel/drivers/input/gameport
Takashi Iwai 76460a7bec 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 <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2014-09-11 23:41:18 -07:00
..
Kconfig
Makefile
emu10k1-gp.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
fm801-gp.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
gameport.c Input: joystick - use ktime for measuring timing 2014-09-11 23:41:18 -07:00
lightning.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ns558.c Input: ns558 - make pnp device ids constant 2010-01-09 23:29:13 -08:00