Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / kernel / sched / cpudeadline.h
blob0adeda93b5fb56e3086a3a059338ab2cc8fc58ba
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define IDX_INVALID -1
5 struct cpudl_item {
6 u64 dl;
7 int cpu;
8 int idx;
9 };
11 struct cpudl {
12 raw_spinlock_t lock;
13 int size;
14 cpumask_var_t free_cpus;
15 struct cpudl_item *elements;
18 #ifdef CONFIG_SMP
19 int cpudl_find(struct cpudl *cp, struct task_struct *p, struct cpumask *later_mask);
20 void cpudl_set(struct cpudl *cp, int cpu, u64 dl);
21 void cpudl_clear(struct cpudl *cp, int cpu);
22 int cpudl_init(struct cpudl *cp);
23 void cpudl_set_freecpu(struct cpudl *cp, int cpu);
24 void cpudl_clear_freecpu(struct cpudl *cp, int cpu);
25 void cpudl_cleanup(struct cpudl *cp);
26 #endif /* CONFIG_SMP */