about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/powerpc
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-09-24 13:38:59 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2015-06-04 14:52:34 -0300
commit34caaafd1ae38c9295325a1da491d75a92b205b0 (patch)
tree9b994b0dfbe18d3dd5277fe922d07e77f97f4cba /sysdeps/unix/sysv/linux/powerpc
parentb634486d57a14b53f1cfcf739e41ddf826e51977 (diff)
downloadglibc-34caaafd1ae38c9295325a1da491d75a92b205b0.tar.gz
glibc-34caaafd1ae38c9295325a1da491d75a92b205b0.tar.xz
glibc-34caaafd1ae38c9295325a1da491d75a92b205b0.zip
Use inline syscalls for non-cancellable versions
This patch uses inline calls (through INLINE_SYSCALL macro) to define
the non-cancellable functions macros to avoid use of the
syscall_nocancel entrypoint.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
index 5b6bb51ab5..3578ea8f6d 100644
--- a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
+++ b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
@@ -41,7 +41,7 @@ __get_clockfreq (void)
      contains at least one line like:
      timebase        : 33333333
      We search for this line and convert the number into an integer.  */
-  int fd = __open_nocancel ("/proc/cpuinfo", O_RDONLY);
+  int fd = open_not_cancel_2 ("/proc/cpuinfo", O_RDONLY);
   if (__glibc_likely (fd != -1))
     return result;