[PATCH] PPC64 enable hp-timing 3rd try

Steven Munroe munroesj@us.ibm.com
Wed Oct 26 22:22:00 GMT 2005


This version uses malloc to allocate a 16k buffer in __get_clockfreq.

Looks like the current 64 cpu systems with SMT can generate a 
/proc/cpuinfo of around 9K.  As timebase is near the end of the file we
need at least that much to guarentee we will find the timebase value. We
can expect to see bigger systems in the future so we will allocate a 16K
buffer to be sure.  Because we are pushing PTHREAD_STACK_MIN, we use
malloc for the buffer instead of using stack space.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc64-hp-timing-20051025.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20051026/f48b99a0/attachment.txt>


More information about the Libc-alpha mailing list