]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - kernel/sched/cpudeadline.h
Merge branch 'stable-4.10' of git://git.infradead.org/users/pcmoore/audit
[mirror_ubuntu-zesty-kernel.git] / kernel / sched / cpudeadline.h
CommitLineData
6bfd6d72
JL
1#ifndef _LINUX_CPUDL_H
2#define _LINUX_CPUDL_H
3
4#include <linux/sched.h>
2726d6ce 5#include <linux/sched/deadline.h>
6bfd6d72
JL
6
7#define IDX_INVALID -1
8
944770ab 9struct cpudl_item {
6bfd6d72
JL
10 u64 dl;
11 int cpu;
944770ab 12 int idx;
6bfd6d72
JL
13};
14
15struct cpudl {
16 raw_spinlock_t lock;
17 int size;
6bfd6d72 18 cpumask_var_t free_cpus;
944770ab 19 struct cpudl_item *elements;
6bfd6d72
JL
20};
21
22
23#ifdef CONFIG_SMP
24int cpudl_find(struct cpudl *cp, struct task_struct *p,
25 struct cpumask *later_mask);
d8206bb3
TC
26void cpudl_set(struct cpudl *cp, int cpu, u64 dl);
27void cpudl_clear(struct cpudl *cp, int cpu);
6bfd6d72 28int cpudl_init(struct cpudl *cp);
16b26943
XP
29void cpudl_set_freecpu(struct cpudl *cp, int cpu);
30void cpudl_clear_freecpu(struct cpudl *cp, int cpu);
6bfd6d72 31void cpudl_cleanup(struct cpudl *cp);
6bfd6d72
JL
32#endif /* CONFIG_SMP */
33
34#endif /* _LINUX_CPUDL_H */