Subject: Re: ps/2 mouse timeout problems
To: <>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 08/30/2002 18:01:32
On Fri, Aug 30, 2002 at 04:15:14PM +0000, Christos Zoulas wrote:
> In article <20020830174728.G2322@night-porter.duskware.de>,
> Martin Husemann <martin@duskware.de> wrote:
> 
> I think I like this :-)

yes - mono_time is fine, and really shouldn't go backwards
(except that you need to disable the clock interrupt while
you fetch it....)

You don't need to calculate max_delay each time, indeed
25000 + 1000000/hz is needed to guarantee 25ms.
I'm sure you'd get away with a constant 50ms (or even 100ms).

(unless you have my optical mouse which generates continuous
mouse events on some surfaces, including a real mat, it's ok
on a sun optical mat)


	David

-- 
David Laight: david@l8s.co.uk