lkml.org 
[lkml]   [2006]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectHP disk protection Re: Remn Yan <> ha scritto:
On Fri 2006-10-13 20:32:48, Burman Yan wrote:
> >From: Luca Tettamanti <kronos.it@gmail.com>

> >Burman Yan <yan_952@hotmail.com> ha scritto:
> >> I would like to hear your remarks on this version.
> >
> >> +static ssize_t mdps_calibrate_store(struct device *dev,
> >> + struct device_attribute *attr, const char *buf,
> >size_t count)
> >> +{
> >> + mdps_calibrate_mouse();
> >> + return count;
> >> +}
> >
> >No locking here?
>
> I don't want to lock it here, since the mouse polling kthread is heavy as
> it is.

> I'd rather report a wrong value of mouse position while recalibrating.
> The way I see it, if you're recalibrating your mouse, chances are you're
> not playing at the same precise millisecond. In my opinion it's worth more
> battery life.

Hmm, and are you sure it can't oops or something?
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-14 10:29    [W:0.063 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site