net: add busy_poll device feature
[linux-2.6/btrfs-unstable.git] / include / linux / sched / deadline.h
blob9d303b8847df28e4851746515fd9ee388e1cf8e1
1 #ifndef _SCHED_DEADLINE_H
2 #define _SCHED_DEADLINE_H
4 /*
5 * SCHED_DEADLINE tasks has negative priorities, reflecting
6 * the fact that any of them has higher prio than RT and
7 * NORMAL/BATCH tasks.
8 */
10 #define MAX_DL_PRIO 0
12 static inline int dl_prio(int prio)
14 if (unlikely(prio < MAX_DL_PRIO))
15 return 1;
16 return 0;
19 static inline int dl_task(struct task_struct *p)
21 return dl_prio(p->prio);
24 #endif /* _SCHED_DEADLINE_H */