[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <41840b750607290330t35eab99fscef30fb46fdf4ec0@mail.gmail.com>
Date: Sat, 29 Jul 2006 13:30:56 +0300
From: "Shem Multinymous" <multinymous@...il.com>
To: "Vojtech Pavlik" <vojtech@...e.cz>
Cc: "Valdis.Kletnieks@...edu" <Valdis.Kletnieks@...edu>,
"Pavel Machek" <pavel@...e.cz>, "Brown, Len" <len.brown@...el.com>,
"Matthew Garrett" <mjg59@...f.ucam.org>,
"kernel list" <linux-kernel@...r.kernel.org>,
linux-thinkpad@...ux-thinkpad.org, linux-acpi@...r.kernel.org
Subject: Re: Generic battery interface
On 7/29/06, Vojtech Pavlik <vojtech@...e.cz> wrote:
> > The lazy polling approach I described in my last post to Vojtech
> > ("block until there's a new readout or N milliseconds have passed,
> > whichever is later") looks like a more general, accurate and efficient
> > interface.
>
> If "N" is given by the kernel, then it's identical to an event-based
> approach. ;) Just described in different words.
No, N is given separately by each userspace client, on every call.
That's the whole point. The kernel driver then does the minimal
hardware querying and event generation that (a) makes sense for the
hardware and (b) satisfies all userspace clients.
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