[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <41840b750608070919p7d12db55u683f42358096cefa@mail.gmail.com>
Date: Mon, 7 Aug 2006 19:19:19 +0300
From: "Shem Multinymous" <multinymous@...il.com>
To: "Pavel Machek" <pavel@...e.cz>
Cc: "Robert Love" <rlove@...ve.org>,
"Jean Delvare" <khali@...ux-fr.org>,
"Greg Kroah-Hartman" <gregkh@...e.de>,
"Alan Cox" <alan@...rguk.ukuu.org.uk>,
linux-kernel@...r.kernel.org, hdaps-devel@...ts.sourceforge.net
Subject: Re: [PATCH 05/12] hdaps: Remember keyboard and mouse activity
On 8/7/06, Pavel Machek <pavel@...e.cz> wrote:
> > When the current hdaps driver is queried for recent keyboard/mouse activity
> > (which is provided by the hardware for use in disk parking daemons), it
> > simply returns the last readout. However, every hardware query resets the
> > activity flag in the hardware, and this is triggered by (almost) any
> > hdaps sysfs attribute read, so the flag could be reset before it is
> > observed and is thus nearly useless.
> >
> > This patch makes the activities flags persist for 0.1sec, by remembering
> > when was the last time we saw them set. This gives apps like the hdaps
> > daemon enough time to poll the flag.
> And should not hdapsd get it from input interface?
At this point the disk may parked and its queue frozen, and may depend
on the keyboard/mouse activity to be released. So hdapsd mustn't do
anything that involves potential swapping or userspace with unlocked
memory, and the input infrastructure is too large and flexible for
such a guarantee. I guess this is why IBM provided this low-level hook
at the embedded controller level.
Shem
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists