diff options
author | Con Kolivas <kernel@kolivas.org> | 2017-10-16 11:11:48 +1100 |
---|---|---|
committer | Con Kolivas <kernel@kolivas.org> | 2017-10-16 14:54:34 +1100 |
commit | 4857436979f756f4714d1bf11f1763fef54497cd (patch) | |
tree | 209602ba393c80443f247f2578cdfdab1d0ee595 /kernel/sched/sched.h | |
parent | 569dbb88e80deb68974ef6fdd6a13edb9d686261 (diff) |
MuQSS version 0.161 CPU scheduler.4.13-muqss-161
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index eeef1a3086d1..c896b638b0bb 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1,4 +1,6 @@ - +#ifdef CONFIG_SCHED_MUQSS +#include "MuQSS.h" +#else /* CONFIG_SCHED_MUQSS */ #include <linux/sched.h> #include <linux/sched/autogroup.h> #include <linux/sched/sysctl.h> @@ -2092,3 +2094,29 @@ static inline void cpufreq_update_this_cpu(struct rq *rq, unsigned int flags) {} #else /* arch_scale_freq_capacity */ #define arch_scale_freq_invariant() (false) #endif + +static inline bool softirq_pending(int cpu) +{ + return false; +} + +#ifdef CONFIG_64BIT +static inline u64 read_sum_exec_runtime(struct task_struct *t) +{ + return t->se.sum_exec_runtime; +} +#else +static inline u64 read_sum_exec_runtime(struct task_struct *t) +{ + u64 ns; + struct rq_flags rf; + struct rq *rq; + + rq = task_rq_lock(t, &rf); + ns = t->se.sum_exec_runtime; + task_rq_unlock(rq, t, &rf); + + return ns; +} +#endif +#endif /* CONFIG_SCHED_MUQSS */ |