From: Albert Cahalan <albert@users.sf.net>
To: arjanv@redhat.com
Cc: Albert Cahalan <albert@users.sourceforge.net>,
linux-kernel mailing list <linux-kernel@vger.kernel.org>,
george@galis.org, Linus Torvalds <torvalds@osdl.org>
Subject: Re: SATA_SIL works with 2.6.7-bk8 seagate drive, but oops
Date: 26 Jun 2004 13:13:38 -0400 [thread overview]
Message-ID: <1088270018.9831.1461.camel@cube> (raw)
In-Reply-To: <1088262728.2805.7.camel@laptop.fenrus.com>
On Sat, 2004-06-26 at 11:12, Arjan van de Ven wrote:
> > You never did come up with an alternative to HZ-guessing
> > that would work on those old 1200-HZ Alpha boxes, the ARM
> > boxes that ran at 64 HZ and so on. I suppose you can blame
> > the arch maintainers, but user-space has to deal with it.
> > So HZ-guessing is a workaround for a kernel bug, especially
> > because you claim that HZ (USER_HZ now) is part of the ABI.
>
> well.... this value is *passed to userspace* via the AT_ attributes ....
> glibc probably nicely exports this info via sysconf(). I guess/hope your
> tools are now using that ?
They use the AT_ attribute when it is provided.
(Linux 2.4 and above only)
The glibc wrapper is defective; it takes a bad
guess at HZ when the AT_ attribute is missing.
Had sysconf() worked as documented, returning an
error code on failure, it would have been used.
The sysconf() call for getting the number of CPUs
is also broken, at least on SPARC. It would return
a 0 instead of the proper -1 error code. I think
it tried to scan /proc/cpuinfo for CPUs.
next prev parent reply other threads:[~2004-06-26 19:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-26 12:37 SATA_SIL works with 2.6.7-bk8 seagate drive, but oops Albert Cahalan
2004-06-26 15:12 ` Arjan van de Ven
2004-06-26 16:00 ` Linus Torvalds
2004-06-26 16:14 ` Arjan van de Ven
2004-06-26 17:17 ` Albert Cahalan
2004-06-26 17:13 ` Albert Cahalan [this message]
2004-06-26 15:54 ` Linus Torvalds
-- strict thread matches above, loose matches on Subject: below --
2004-06-24 15:59 SATA_SIL fails with 2.6.7-bk6 seagate drive George Georgalis
2004-06-24 18:46 ` Ricky Beam
2004-06-25 21:34 ` SATA_SIL works with 2.6.7-bk8 seagate drive, but oops George Georgalis
2004-06-25 23:16 ` Linus Torvalds
2004-06-28 2:12 ` George Georgalis
2004-06-29 8:46 ` Sebastian Slota
2004-06-30 4:43 ` George Georgalis
2004-06-30 6:16 ` Jeff Garzik
2004-07-02 23:01 ` George Georgalis
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=1088270018.9831.1461.camel@cube \
--to=albert@users.sf.net \
--cc=albert@users.sourceforge.net \
--cc=arjanv@redhat.com \
--cc=george@galis.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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