mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
Moving feature checks code under tools/build directory. Changing also $feature_dir to point to new feature directory location and perf Makefiles to include Makefile.feature from new location. Signed-off-by: Jiri Olsa <[email protected]> Cc: Corey Ashford <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
18 lines
271 B
C
18 lines
271 B
C
#include <stdint.h>
|
|
#include <pthread.h>
|
|
#include <sched.h>
|
|
|
|
int main(void)
|
|
{
|
|
int ret = 0;
|
|
pthread_attr_t thread_attr;
|
|
cpu_set_t cs;
|
|
|
|
pthread_attr_init(&thread_attr);
|
|
CPU_ZERO(&cs);
|
|
|
|
ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cs), &cs);
|
|
|
|
return ret;
|
|
}
|