diff options
author | Clark Williams <clark.williams@gmail.com> | 2013-02-22 21:20:11 +0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-02-22 21:20:11 +0400 |
commit | bc681593b588786e6326b3e5f78ccc1683e2269c (patch) | |
tree | 21079559473523bae1561314eb6c8ae50f2f7c28 /include/linux/sched/rt.h | |
parent | 2ef14f465b9e096531343f5b734cffc5f759f4a6 (diff) | |
download | linux-bc681593b588786e6326b3e5f78ccc1683e2269c.tar.xz |
sched: move RR_TIMESLICE from sysctl.h to rt.h
Originally submitted by Clark Williams as part of a cleanup,
but happens also to fix an ia64 build problem:
arch/ia64/kernel/init_task.c:38: error: 'RR_TIMESLICE' undeclared here (not in a function)
Signed-off-by: Clark Williams <clark.williams@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/linux/sched/rt.h')
-rw-r--r-- | include/linux/sched/rt.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sched/rt.h b/include/linux/sched/rt.h index 94e19ea28fc3..440434df3627 100644 --- a/include/linux/sched/rt.h +++ b/include/linux/sched/rt.h @@ -55,4 +55,10 @@ static inline bool tsk_is_pi_blocked(struct task_struct *tsk) extern void normalize_rt_tasks(void); +/* + * default timeslice is 100 msecs (used only for SCHED_RR tasks). + * Timeslices get refilled after they expire. + */ +#define RR_TIMESLICE (100 * HZ / 1000) + #endif /* _SCHED_RT_H */ |