Blame view
kernel/sched/cpupri.h
770 Bytes
b24413180 License cleanup: ... |
1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
6e0534f27 sched: use a 2-d ... |
2 |
|
e539d8fcd sched: fix the cp... |
3 |
#define CPUPRI_NR_PRIORITIES (MAX_RT_PRIO + 2) |
6e0534f27 sched: use a 2-d ... |
4 |
|
97fb7a0a8 sched: Clean up a... |
5 6 7 |
#define CPUPRI_INVALID -1 #define CPUPRI_IDLE 0 #define CPUPRI_NORMAL 1 |
6e0534f27 sched: use a 2-d ... |
8 9 10 |
/* values 2-101 are RT priorities 0-99 */ struct cpupri_vec { |
97fb7a0a8 sched: Clean up a... |
11 12 |
atomic_t count; cpumask_var_t mask; |
6e0534f27 sched: use a 2-d ... |
13 14 15 |
}; struct cpupri { |
97fb7a0a8 sched: Clean up a... |
16 17 |
struct cpupri_vec pri_to_cpu[CPUPRI_NR_PRIORITIES]; int *cpu_to_pri; |
6e0534f27 sched: use a 2-d ... |
18 19 20 |
}; #ifdef CONFIG_SMP |
804d402fb sched/rt: Make RT... |
21 |
int cpupri_find(struct cpupri *cp, struct task_struct *p, |
a1bd02e1f sched/rt: Optimiz... |
22 23 24 25 |
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)); |
6e0534f27 sched: use a 2-d ... |
26 |
void cpupri_set(struct cpupri *cp, int cpu, int pri); |
97fb7a0a8 sched: Clean up a... |
27 |
int cpupri_init(struct cpupri *cp); |
68e74568f sched: convert st... |
28 |
void cpupri_cleanup(struct cpupri *cp); |
6e0534f27 sched: use a 2-d ... |
29 |
#endif |