* [PATCH] sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems
@ 2015-05-05 20:57 Abel Vesa
0 siblings, 0 replies; 3+ messages in thread
From: Abel Vesa @ 2015-05-05 20:57 UTC (permalink / raw)
To: mturquette, peterz, mingo; +Cc: linux-kernel, patches, Abel Vesa
If CONFIG_SMP is not defined the build will fail due to
function 'gov_cfs_update_cpu' definition missing.
Added empty static inline definition for NON-SMP systems.
This patch applies to:
https://git.linaro.org/people/mike.turquette/linux.git sched-freq
Signed-off-by: Abel Vesa <abelvesa@gmail.com>
---
kernel/sched/sched.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index ec23523..3d0996e 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1413,6 +1413,7 @@ static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta)
#else
static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta) { }
static inline void sched_avg_update(struct rq *rq) { }
+static inline void gov_cfs_update_cpu(int cpu) {}
#endif
extern void start_bandwidth_timer(struct hrtimer *period_timer, ktime_t period);
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 0/4] scheduler-based cpu frequency scaling
@ 2015-05-04 22:10 Michael Turquette
2015-05-06 16:50 ` [PATCH] sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems Abel Vesa
0 siblings, 1 reply; 3+ messages in thread
From: Michael Turquette @ 2015-05-04 22:10 UTC (permalink / raw)
To: peterz, mingo
Cc: linux-kernel, preeti, Morten.Rasmussen, riel, efault,
nicolas.pitre, inaro-kernel, daniel.lezcano, patches, eas-dev,
dietmar.eggemann, vincent.guittot, amit.kucheria, juri.lelli,
rjw, viresh.kumar, ashwin.chaugule, alex.shi, Michael Turquette
This series implements an event-driven cpufreq governor that scales cpu
frequency as a function of cfs runqueue utilization. The intent of this RFC is
to get some discussion going about how the scheduler can become the policy
engine for selecting cpu frequency, what limitations exist and what design do
we want to take to get to a solution.
This work is a different take on the patches I posted in November:
http://lkml.kernel.org/r/<1413958051-7103-1-git-send-email-mturquette@linaro.org>
This series depends on having frequency-invariant representations for load.
This requires Vincent's recently merged cpu capacity rework patches, as well as
a new patch from Morten included here. Morten's patch will likely make an
appearance in his energy aware scheduling v4 series.
Thanks to Juri Lelli <juri.lelli@arm.com> for contributing to the development
of the governor.
A git branch with these patches can be pulled from here:
https://git.linaro.org/people/mike.turquette/linux.git sched-freq
Smoke testing has been done on an OMAP4 Pandaboard and an Exynos 5800
Chromebook2. Extensive benchmarking and regression testing has not yet been
done. Before sinking too much time into extensive testing I'd like to get
feedback on the general design.
Michael Turquette (3):
sched: sched feature for cpu frequency selection
sched: export get_cpu_usage & capacity_orig_of
sched: cpufreq_sched_cfs: PELT-based cpu frequency scaling
Morten Rasmussen (1):
arm: Frequency invariant scheduler load-tracking support
arch/arm/include/asm/topology.h | 7 +
arch/arm/kernel/smp.c | 53 ++++++-
arch/arm/kernel/topology.c | 17 +++
drivers/cpufreq/Kconfig | 24 ++++
include/linux/cpufreq.h | 3 +
kernel/sched/Makefile | 1 +
kernel/sched/cpufreq_cfs.c | 311 ++++++++++++++++++++++++++++++++++++++++
kernel/sched/fair.c | 48 +++----
kernel/sched/features.h | 6 +
kernel/sched/sched.h | 39 +++++
10 files changed, 475 insertions(+), 34 deletions(-)
create mode 100644 kernel/sched/cpufreq_cfs.c
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems
2015-05-04 22:10 [PATCH 0/4] scheduler-based cpu frequency scaling Michael Turquette
@ 2015-05-06 16:50 ` Abel Vesa
2015-05-07 4:18 ` Michael Turquette
0 siblings, 1 reply; 3+ messages in thread
From: Abel Vesa @ 2015-05-06 16:50 UTC (permalink / raw)
To: mturquette, peterz, mingo; +Cc: linux-kernel, patches, Abel Vesa
If CONFIG_SMP is not defined the build will fail due to
function 'gov_cfs_update_cpu' definition missing.
Added empty static inline definition for NON-SMP systems.
This patch applies to:
https://git.linaro.org/people/mike.turquette/linux.git sched-freq
Signed-off-by: Abel Vesa <abelvesa@gmail.com>
---
kernel/sched/sched.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index ec23523..3d0996e 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1413,6 +1413,7 @@ static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta)
#else
static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta) { }
static inline void sched_avg_update(struct rq *rq) { }
+static inline void gov_cfs_update_cpu(int cpu) {}
#endif
extern void start_bandwidth_timer(struct hrtimer *period_timer, ktime_t period);
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems
2015-05-06 16:50 ` [PATCH] sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems Abel Vesa
@ 2015-05-07 4:18 ` Michael Turquette
0 siblings, 0 replies; 3+ messages in thread
From: Michael Turquette @ 2015-05-07 4:18 UTC (permalink / raw)
To: Abel Vesa, peterz, mingo; +Cc: linux-kernel, patches, Abel Vesa
Quoting Abel Vesa (2015-05-06 09:50:40)
> If CONFIG_SMP is not defined the build will fail due to
> function 'gov_cfs_update_cpu' definition missing.
> Added empty static inline definition for NON-SMP systems.
>
> This patch applies to:
> https://git.linaro.org/people/mike.turquette/linux.git sched-freq
>
> Signed-off-by: Abel Vesa <abelvesa@gmail.com>
Thanks Abel. I'll fold this change in.
Regards,
Mike
> ---
> kernel/sched/sched.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
> index ec23523..3d0996e 100644
> --- a/kernel/sched/sched.h
> +++ b/kernel/sched/sched.h
> @@ -1413,6 +1413,7 @@ static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta)
> #else
> static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta) { }
> static inline void sched_avg_update(struct rq *rq) { }
> +static inline void gov_cfs_update_cpu(int cpu) {}
> #endif
>
> extern void start_bandwidth_timer(struct hrtimer *period_timer, ktime_t period);
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-07 4:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-05 20:57 [PATCH] sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems Abel Vesa
-- strict thread matches above, loose matches on Subject: below --
2015-05-04 22:10 [PATCH 0/4] scheduler-based cpu frequency scaling Michael Turquette
2015-05-06 16:50 ` [PATCH] sched/core: Add empty 'gov_cfs_update_cpu' function definition for NON-SMP systems Abel Vesa
2015-05-07 4:18 ` Michael Turquette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome