Merge remote-tracking branches 'asoc/topic/link-param', 'asoc/topic/max98090', 'asoc...
[linux-drm-fsl-dcu.git] / tools / perf / config / feature-checks / test-pthread-attr-setaffinity-np.c
1 #include <stdint.h>
2 #include <pthread.h>
3
4 int main(void)
5 {
6         int ret = 0;
7         pthread_attr_t thread_attr;
8         cpu_set_t cs;
9
10         pthread_attr_init(&thread_attr);
11         /* don't care abt exact args, just the API itself in libpthread */
12         ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cs), &cs);
13
14         return ret;
15 }