Merge tag 'powerpc-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[linux/fpc-iii.git] / tools / perf / util / affinity.h
blob0ad6a18ef20c6cfce47411a6cab976cba40c4963
1 // SPDX-License-Identifier: GPL-2.0
2 #ifndef PERF_AFFINITY_H
3 #define PERF_AFFINITY_H 1
5 #include <stdbool.h>
7 struct affinity {
8 unsigned long *orig_cpus;
9 unsigned long *sched_cpus;
10 bool changed;
13 void affinity__cleanup(struct affinity *a);
14 void affinity__set(struct affinity *a, int cpu);
15 int affinity__setup(struct affinity *a);
17 #endif // PERF_AFFINITY_H