diff options
Diffstat (limited to 'kernel/include/linux/sched')
-rw-r--r-- | kernel/include/linux/sched/deadline.h | 5 | ||||
-rw-r--r-- | kernel/include/linux/sched/sysctl.h | 12 |
2 files changed, 5 insertions, 12 deletions
diff --git a/kernel/include/linux/sched/deadline.h b/kernel/include/linux/sched/deadline.h index 9d303b884..9089a2ae9 100644 --- a/kernel/include/linux/sched/deadline.h +++ b/kernel/include/linux/sched/deadline.h @@ -21,4 +21,9 @@ static inline int dl_task(struct task_struct *p) return dl_prio(p->prio); } +static inline bool dl_time_before(u64 a, u64 b) +{ + return (s64)(a - b) < 0; +} + #endif /* _SCHED_DEADLINE_H */ diff --git a/kernel/include/linux/sched/sysctl.h b/kernel/include/linux/sched/sysctl.h index 596a0e007..c9e4731cf 100644 --- a/kernel/include/linux/sched/sysctl.h +++ b/kernel/include/linux/sched/sysctl.h @@ -57,24 +57,12 @@ extern unsigned int sysctl_numa_balancing_scan_size; extern unsigned int sysctl_sched_migration_cost; extern unsigned int sysctl_sched_nr_migrate; extern unsigned int sysctl_sched_time_avg; -extern unsigned int sysctl_timer_migration; extern unsigned int sysctl_sched_shares_window; int sched_proc_update_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos); #endif -#ifdef CONFIG_SCHED_DEBUG -static inline unsigned int get_sysctl_timer_migration(void) -{ - return sysctl_timer_migration; -} -#else -static inline unsigned int get_sysctl_timer_migration(void) -{ - return 1; -} -#endif /* * control realtime throttling: |