ad5ec117a324eb7d977b26e19e43a4848f47551e
1 // SPDX-FileCopyrightText: 2015 Michael Jeanson <mjeanson@efficios.com>
3 // SPDX-License-Identifier: LGPL-2.1-or-later
5 #ifndef _COMPAT_GETCPU_H
6 #define _COMPAT_GETCPU_H
8 #if defined(HAVE_SCHED_GETCPU)
12 int urcu_sched_getcpu(void)
14 return sched_getcpu();
16 #elif defined(HAVE_GETCPUID)
17 #include <sys/processor.h>
20 int urcu_sched_getcpu(void)
22 return (int) getcpuid();
27 int urcu_sched_getcpu(void)
33 #endif /* _COMPAT_GETCPU_H */
This page took 0.028984 seconds and 4 git commands to generate.