[PATCH] powerpc: fix sysconf support for cache geometries
Richard Henderson
rth@twiddle.net
Thu Jun 15 21:03:00 GMT 2017
On 06/15/2017 01:45 PM, Paul Clarke wrote:
> Commit cdfbe5037f2f67bf5f560b73732b69d0fabe2314 added sysconf support
> for cache geometries on powerpc, but mishandled errno. For valid input
> parameters, sysconf() should not set errno.
>
> 2017-06-15 Paul A. Clarke<pc@us.ibm.com>
>
> * sysdeps/unix/sysv/linux/powerpc/sysconf.c: Remove references
> to errno, and simplify remaining related code.
> ---
> sysdeps/unix/sysv/linux/powerpc/sysconf.c | 37 +++++++------------------------
> 1 file changed, 8 insertions(+), 29 deletions(-)
LGTM.
Any thoughts on falling back to AT_*CACHEBSIZE for _SC_LEVEL1_*CACHE_LINESIZE
for older kernels where AT_L1*_CACHEGEOMETRY is not present?
r~
More information about the Libc-alpha
mailing list