[PATCH] PPC64 enable hp-timing
Steve Munroe
sjmunroe@us.ibm.com
Tue Oct 25 23:17:00 GMT 2005
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
More information about the Libc-alpha
mailing list