ASoC: rt5651: Remove unused rt5651_platform_data
[linux-2.6/btrfs-unstable.git] / kernel / sched / cpudeadline.h
blobb010d26e108eb4dbf067a8116e422dc74232cf6e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_CPUDL_H
3 #define _LINUX_CPUDL_H
5 #include <linux/sched.h>
6 #include <linux/sched/deadline.h>
8 #define IDX_INVALID -1
10 struct cpudl_item {
11 u64 dl;
12 int cpu;
13 int idx;
16 struct cpudl {
17 raw_spinlock_t lock;
18 int size;
19 cpumask_var_t free_cpus;
20 struct cpudl_item *elements;
24 #ifdef CONFIG_SMP
25 int cpudl_find(struct cpudl *cp, struct task_struct *p,
26 struct cpumask *later_mask);
27 void cpudl_set(struct cpudl *cp, int cpu, u64 dl);
28 void cpudl_clear(struct cpudl *cp, int cpu);
29 int cpudl_init(struct cpudl *cp);
30 void cpudl_set_freecpu(struct cpudl *cp, int cpu);
31 void cpudl_clear_freecpu(struct cpudl *cp, int cpu);
32 void cpudl_cleanup(struct cpudl *cp);
33 #endif /* CONFIG_SMP */
35 #endif /* _LINUX_CPUDL_H */