This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] PPC64 enable hp-timing
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Benjamin Herrenschmidt <benh at kernel dot crashing dot org>, libc-alpha at sources dot redhat dot com
- Cc: decimal at us dot ibm dot com, Thomas Gall <tgall at us dot ibm dot com>
- Date: Tue, 25 Oct 2005 18:16:44 -0500
- Subject: Re: [PATCH] PPC64 enable hp-timing
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote on 10/25/2005
05:51:33 PM:
> 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...
>
Well if this is a problem, i386, ia64, and x86_64 have it too. They are
all implemented the same way. sparc64 uses an 8K buffer.
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center