projects
/
firefly-linux-kernel-4.4.55.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge remote-tracking branches 'spi/topic/qup', 'spi/topic/rockchip', 'spi/topic...
[firefly-linux-kernel-4.4.55.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
}