public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Frans Pop <elendil@planet.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: HP accelerometer driver: testers wanted
Date: Fri, 23 Jan 2009 10:13:37 +0100	[thread overview]
Message-ID: <20090123091337.GA4296@elf.ucw.cz> (raw)
In-Reply-To: <200901230959.25491.elendil@planet.nl>

On Fri 2009-01-23 09:59:25, Frans Pop wrote:
> On Friday 23 January 2009, Frans Pop wrote:
> > The LED lights up yellow, but I have problems telling if the disk gets
> > parked or not. One time I got a green led and seemingly a fair amount
> > of activity immediately after getting the yellow led.
> >
> > After looking at hpfall.c, I checked /sys/block/sda/device/unload_heads
> > after a drop:
> > $ cat /sys/block/sda/device/unload_heads
> > 19616
> > $ cat /sys/block/sda/device/unload_heads
> > 0
> >
> > The last was at most 2 seconds after the first, certainly not 20...
> 
> I've just looked at hpcall.c a bit closer and I guess that's because of 
> the alarm(2) call? I must admit having some problems reading that
> code.

Yes, it works as designed. Change if (1 || into if (0) and you'll get
20 second timeouts.

(It initially asks for 20 seconds to give itself time for those other
calculations.)
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2009-01-23  9:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-22 21:31 HP accelerometer driver: testers wanted Pavel Machek
2009-01-22 22:01 ` Frans Pop
2009-01-22 22:17   ` Pavel Machek
2009-01-22 23:11     ` Frans Pop
2009-01-23  8:59       ` Frans Pop
2009-01-23  9:13         ` Pavel Machek [this message]
2009-01-23 15:22       ` Pavel Machek
2009-01-22 23:16 ` Mariusz Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090123091337.GA4296@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=elendil@planet.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox