1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_CPUPRI_H
3 #define _LINUX_CPUPRI_H
5 #include <linux/sched.h>
7 #define CPUPRI_NR_PRIORITIES (MAX_RT_PRIO + 2)
9 #define CPUPRI_INVALID -1
11 #define CPUPRI_NORMAL 1
12 /* values 2-101 are RT priorities 0-99 */
20 struct cpupri_vec pri_to_cpu
[CPUPRI_NR_PRIORITIES
];
25 int cpupri_find(struct cpupri
*cp
,
26 struct task_struct
*p
, struct cpumask
*lowest_mask
);
27 void cpupri_set(struct cpupri
*cp
, int cpu
, int pri
);
28 int cpupri_init(struct cpupri
*cp
);
29 void cpupri_cleanup(struct cpupri
*cp
);
32 #endif /* _LINUX_CPUPRI_H */