mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
S390: Add support for vdso getcpu symbol.
This patch adds support for symbol __kernel_getcpu in vDSO, which is available with kernel 4.5. Now sched_getcpu is using this symbol if available in mapped vDSO by defining macro HAVE_GETCPU_VSYSCALL. If not available at runtime, the former syscall is used.
This commit is contained in:
@ -31,6 +31,8 @@ extern long int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *);
|
||||
|
||||
extern long int (*VDSO_SYMBOL(clock_getres)) (clockid_t, struct timespec *);
|
||||
|
||||
extern long int (*VDSO_SYMBOL(getcpu)) (unsigned *, unsigned *, void *)
|
||||
attribute_hidden;
|
||||
#endif
|
||||
|
||||
#endif /* _LIBC_VDSO_H */
|
||||
|
Reference in New Issue
Block a user