BZ #16418: Fix powerpc get_clockfreq raciness
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Mon, 24 Nov 2014 21:18:26 +0000 (16:18 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 21 Jan 2015 15:46:49 +0000 (10:46 -0500)
commit6b2ba95b6baab6b1789e8823c8a808e09bc98794
tree5daf251763202374f45bd7446c720fc9fc1abc67
parent191220b3065c659065f8c1e5282ea6410aa47a93
BZ #16418: Fix powerpc get_clockfreq raciness

This patch fix powerpc __get_clockfreq racy and cancel-safe issues by
dropping internal static cache and by using nocancel file operations.
The vDSO failure check is also removed, since kernel code does not
return an error (it cleans cr0.so bit on function return) and the static
code (to read value /proc) now uses non-cancellable calls.
ChangeLog
NEWS
sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c