This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] PPC64 enable hp-timing
- From: Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- To: Steven Munroe <munroesj at us dot ibm dot com>
- Cc: libc-alpha at sources dot redhat dot com, Dwayne McConnell <decimal at us dot ibm dot com>, Tom Gall <tgall at us dot ibm dot com>
- Date: Wed, 26 Oct 2005 08:51:33 +1000
- Subject: Re: [PATCH] PPC64 enable hp-timing
- References: <435E9C99.4020201@us.ibm.com>
On Tue, 2005-10-25 at 15:59 -0500, Steven Munroe wrote:
> +
> + fd = open ("/proc/cpuinfo", O_RDONLY);
> + if (__builtin_expect (fd != -1, 1))
> + {
> + /* XXX AFAIK the /proc filesystem can generate "files" only up
> + to a size of 4096 bytes. */
I think that assumption isn't true. The seq_file mecanism deals
transparently with that nowadays...
Ben.