linux/drivers/input/joystick
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
..
iforce Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
a3d.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
adi.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
amijoy.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2012-03-29 23:17:44 -07:00
analog.c Input: joystick - use ktime for measuring timing 2014-09-11 23:41:18 -07:00
as5011.c Input: as5011 - fix error return code in as5011_probe() 2013-08-24 17:44:25 -07:00
cobra.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
db9.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
gamecon.c Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
gf2k.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
grip_mp.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
grip.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
guillemot.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
interact.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
joydump.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
Kconfig Input: add Austria Microsystem AS5011 joystick driver 2011-01-10 11:01:43 -08:00
magellan.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
Makefile Input: add Austria Microsystem AS5011 joystick driver 2011-01-10 11:01:43 -08:00
maplecontrol.c Input: joysticks - use dev_get_platdata() 2013-08-12 22:32:30 -07:00
sidewinder.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
spaceball.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
spaceorb.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
stinger.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
tmdc.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
turbografx.c Input: turbografx - fix reference counting 2010-12-01 09:20:34 -08:00
twidjoy.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
walkera0701.c Input: walkera0701 - claim parport when opening the device 2013-01-21 17:32:01 -08:00
warrior.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
xpad.c Input: xpad - sync device IDs with xboxdrv 2014-09-08 14:57:25 -07:00
zhenhua.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00