Merge tag 'topic/drm-misc-2015-07-23' of git://anongit.freedesktop.org/drm-intel...
[deliverable/linux.git] / kernel / sched / cpudeadline.h
CommitLineData
6bfd6d72
JL
1#ifndef _LINUX_CPUDL_H
2#define _LINUX_CPUDL_H
3
4#include <linux/sched.h>
5
6#define IDX_INVALID -1
7
944770ab 8struct cpudl_item {
6bfd6d72
JL
9 u64 dl;
10 int cpu;
944770ab 11 int idx;
6bfd6d72
JL
12};
13
14struct cpudl {
15 raw_spinlock_t lock;
16 int size;
6bfd6d72 17 cpumask_var_t free_cpus;
944770ab 18 struct cpudl_item *elements;
6bfd6d72
JL
19};
20
21
22#ifdef CONFIG_SMP
23int cpudl_find(struct cpudl *cp, struct task_struct *p,
24 struct cpumask *later_mask);
25void cpudl_set(struct cpudl *cp, int cpu, u64 dl, int is_valid);
26int cpudl_init(struct cpudl *cp);
16b26943
XP
27void cpudl_set_freecpu(struct cpudl *cp, int cpu);
28void cpudl_clear_freecpu(struct cpudl *cp, int cpu);
6bfd6d72 29void cpudl_cleanup(struct cpudl *cp);
6bfd6d72
JL
30#endif /* CONFIG_SMP */
31
32#endif /* _LINUX_CPUDL_H */
This page took 0.087602 seconds and 5 git commands to generate.