linux/kernel/sched/cpupri.h

/* SPDX-License-Identifier: GPL-2.0 */

#define CPUPRI_NR_PRIORITIES

#define CPUPRI_INVALID
#define CPUPRI_NORMAL
/* values 1-99 are for RT1-RT99 priorities */
#define CPUPRI_HIGHER

struct cpupri_vec {};

struct cpupri {};

#ifdef CONFIG_SMP
int  cpupri_find(struct cpupri *cp, struct task_struct *p,
		 struct cpumask *lowest_mask);
int  cpupri_find_fitness(struct cpupri *cp, struct task_struct *p,
			 struct cpumask *lowest_mask,
			 bool (*fitness_fn)(struct task_struct *p, int cpu));
void cpupri_set(struct cpupri *cp, int cpu, int pri);
int  cpupri_init(struct cpupri *cp);
void cpupri_cleanup(struct cpupri *cp);
#endif