diff options
author | Frode Isaksen <fisaksen@baylibre.com> | 2017-12-19 11:15:35 +0000 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2018-02-07 11:47:29 +0000 |
commit | c4a6287185179732dfc1e903c195ff90c19f1065 (patch) | |
tree | d35f5010dbd952e40f5c178322026445b55757c1 /meta-eas/recipes-kernel/linux/linux-renesas/0046-sched-Make-energy-awareness-a-sched-feature.patch | |
parent | 109dea1d5c5a38807b098b588584636ae636a302 (diff) |
This layer provides Energy Aware Scheduling (EAS) patcheseel_5.1.0eel_5.0.3eel_5.0.2eel/5.1.0eel/5.0.3eel/5.0.25.1.05.0.35.0.2eel
For the moment only for Renesas R-Car Gen3 SoC's.
Can be expanded for other SoC's by setting the machine
feature biglittle and provide the relevant EAS patches.
Bug-AGL: SPEC-813
Change-Id: I2b5e69c515c33e57be19b30466fe208d7b8ac1a5
Signed-off-by: Frode Isaksen <fisaksen@baylibre.com>
Diffstat (limited to 'meta-eas/recipes-kernel/linux/linux-renesas/0046-sched-Make-energy-awareness-a-sched-feature.patch')
-rw-r--r-- | meta-eas/recipes-kernel/linux/linux-renesas/0046-sched-Make-energy-awareness-a-sched-feature.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/meta-eas/recipes-kernel/linux/linux-renesas/0046-sched-Make-energy-awareness-a-sched-feature.patch b/meta-eas/recipes-kernel/linux/linux-renesas/0046-sched-Make-energy-awareness-a-sched-feature.patch new file mode 100644 index 0000000..9b9929b --- /dev/null +++ b/meta-eas/recipes-kernel/linux/linux-renesas/0046-sched-Make-energy-awareness-a-sched-feature.patch @@ -0,0 +1,57 @@ +From ac91525a35e79b82a09fb1ed75ee547802f3bed1 Mon Sep 17 00:00:00 2001 +From: Morten Rasmussen <morten.rasmussen@arm.com> +Date: Tue, 13 Jan 2015 13:45:51 +0000 +Subject: [PATCH 46/92] sched: Make energy awareness a sched feature + +This patch introduces the ENERGY_AWARE sched feature, which is +implemented using jump labels when SCHED_DEBUG is defined. It is +statically set false when SCHED_DEBUG is not defined. Hence this doesn't +allow energy awareness to be enabled without SCHED_DEBUG. This +sched_feature knob will be replaced later with a more appropriate +control knob when things have matured a bit. + +ENERGY_AWARE is based on per-entity load-tracking hence FAIR_GROUP_SCHED +must be enable. This dependency isn't checked at compile time yet. + +cc: Ingo Molnar <mingo@redhat.com> +cc: Peter Zijlstra <peterz@infradead.org> +Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com> +(cherry picked from commit e3b80d193dad157c720ec29496104126dbfc67ce) +Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> +--- + kernel/sched/fair.c | 5 +++++ + kernel/sched/features.h | 5 +++++ + 2 files changed, 10 insertions(+) + +diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c +index cb283ca..fa393d9 100644 +--- a/kernel/sched/fair.c ++++ b/kernel/sched/fair.c +@@ -5291,6 +5291,11 @@ static void record_wakee(struct task_struct *p) + } + } + ++static inline bool energy_aware(void) ++{ ++ return sched_feat(ENERGY_AWARE); ++} ++ + /* + * Detect M:N waker/wakee relationships via a switching-frequency heuristic. + * +diff --git a/kernel/sched/features.h b/kernel/sched/features.h +index 69631fa..b634151 100644 +--- a/kernel/sched/features.h ++++ b/kernel/sched/features.h +@@ -69,3 +69,8 @@ + SCHED_FEAT(LB_MIN, false) + SCHED_FEAT(ATTACH_AGE_LOAD, true) + ++/* ++ * Energy aware scheduling. Use platform energy model to guide scheduling ++ * decisions optimizing for energy efficiency. ++ */ ++SCHED_FEAT(ENERGY_AWARE, false) +-- +1.9.1 + |