diff options
author | Con Kolivas <kernel@kolivas.org> | 2017-11-20 17:12:49 +1100 |
---|---|---|
committer | Con Kolivas <kernel@kolivas.org> | 2017-11-20 17:12:49 +1100 |
commit | fbc0b4595aeccc2cc03e292ac8743565b3d3037b (patch) | |
tree | 05f7868bbdfc57fc9a28019f85c6cc44c2cd1c37 /kernel/sched/sched.h | |
parent | bebc6082da0a9f5d47a1ea2edc099bf671058bd4 (diff) |
MuQSS version 0.162 CPU scheduler.4.14-muqss-162
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 3b448ba82225..7c213bfe3d3c 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1,5 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0 */ +#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> @@ -2090,3 +2093,29 @@ static inline void cpufreq_update_util(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 */ |