Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #ifndef PERF_AFFINITY_H
0003 #define PERF_AFFINITY_H 1
0004 
0005 #include <stdbool.h>
0006 
0007 struct affinity {
0008     unsigned long *orig_cpus;
0009     unsigned long *sched_cpus;
0010     bool changed;
0011 };
0012 
0013 void affinity__cleanup(struct affinity *a);
0014 void affinity__set(struct affinity *a, int cpu);
0015 int affinity__setup(struct affinity *a);
0016 
0017 #endif // PERF_AFFINITY_H