Re: [PATCH v2] Input: joystick - Use ktime for measuring timing

2014-09-18 Thread Dmitry Torokhov
On Thu, Sep 18, 2014 at 09:15:44AM +0200, Takashi Iwai wrote: > At Wed, 17 Sep 2014 21:23:37 +0200, > Andreas Mohr wrote: > > > > Hi, > > > > On Wed, Sep 10, 2014 at 05:57:17PM +0200, Takashi Iwai wrote: > > > The current codes in gameport and analog joystick drivers for the time > > >

Re: [PATCH v2] Input: joystick - Use ktime for measuring timing

2014-09-18 Thread Takashi Iwai
At Wed, 17 Sep 2014 21:23:37 +0200, Andreas Mohr wrote: > > Hi, > > On Wed, Sep 10, 2014 at 05:57:17PM +0200, Takashi Iwai wrote: > > 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;

Re: [PATCH v2] Input: joystick - Use ktime for measuring timing

2014-09-18 Thread Takashi Iwai
At Wed, 17 Sep 2014 21:23:37 +0200, Andreas Mohr wrote: Hi, On Wed, Sep 10, 2014 at 05:57:17PM +0200, Takashi Iwai wrote: 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

Re: [PATCH v2] Input: joystick - Use ktime for measuring timing

2014-09-18 Thread Dmitry Torokhov
On Thu, Sep 18, 2014 at 09:15:44AM +0200, Takashi Iwai wrote: At Wed, 17 Sep 2014 21:23:37 +0200, Andreas Mohr wrote: Hi, On Wed, Sep 10, 2014 at 05:57:17PM +0200, Takashi Iwai wrote: The current codes in gameport and analog joystick drivers for the time accounting have a

Re: [PATCH v2] Input: joystick - Use ktime for measuring timing

2014-09-17 Thread Andreas Mohr
Hi, On Wed, Sep 10, 2014 at 05:57:17PM +0200, Takashi Iwai wrote: > 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

Re: [PATCH v2] Input: joystick - Use ktime for measuring timing

2014-09-17 Thread Andreas Mohr
Hi, On Wed, Sep 10, 2014 at 05:57:17PM +0200, Takashi Iwai wrote: 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

[PATCH v2] Input: joystick - Use ktime for measuring timing

2014-09-10 Thread Takashi Iwai
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

[PATCH v2] Input: joystick - Use ktime for measuring timing

2014-09-10 Thread Takashi Iwai
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