Merge tag 'spi-fix-v6.9-merge-window' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / tools / perf / util / affinity.h
CommitLineData
267ed5d8
AK
1// SPDX-License-Identifier: GPL-2.0
2#ifndef PERF_AFFINITY_H
3#define PERF_AFFINITY_H 1
4
5#include <stdbool.h>
6
7struct affinity {
8 unsigned long *orig_cpus;
9 unsigned long *sched_cpus;
10 bool changed;
11};
12
13void affinity__cleanup(struct affinity *a);
14void affinity__set(struct affinity *a, int cpu);
15int affinity__setup(struct affinity *a);
16
17#endif // PERF_AFFINITY_H