[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1539855372-11472-1-git-send-email-daniel.lezcano@linaro.org>
Date: Thu, 18 Oct 2018 11:35:58 +0200
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: rafael@...nel.org, mingo@...nel.org
Cc: thara.gopinath@...aro.org, linux-kernel@...r.kernel.org,
peterz@...radead.org, rui.zhang@...el.com,
gregkh@...uxfoundation.org, viresh.kumar@...aro.org,
amit.kachhap@...il.com, javi.merino@...nel.org,
edubezval@...il.com, linux-pm@...r.kernel.org,
quentin.perret@....com, ionela.voinescu@....com,
vincent.guittot@...aro.org, Ingo Molnar <mingo@...hat.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Juri Lelli <juri.lelli@...hat.com>,
Patrick Bellasi <patrick.bellasi@....com>
Subject: [PATCH 1/2] sched/cpufreq: Reorganize the cpufreq files
It was suggested to set the scene for the PM components in the
scheduler code organization in the recent discussion about making the
scheduler aware of the capacity capping from the thermal framework.
Move the cpufreq files into its own directory as suggested at:
https://lkml.org/lkml/2018/10/18/353
https://lkml.org/lkml/2018/10/18/408
Suggested-by: Ingo Molnar <mingo@...nel.org>
Cc: Rafael J. Wysocki <rafael@...nel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
---
kernel/sched/Makefile | 3 +--
kernel/sched/{cpufreq.c => cpufreq/core.c} | 2 +-
kernel/sched/{cpufreq_schedutil.c => cpufreq/metrics.c} | 2 +-
3 files changed, 3 insertions(+), 4 deletions(-)
rename kernel/sched/{cpufreq.c => cpufreq/core.c} (99%)
rename kernel/sched/{cpufreq_schedutil.c => cpufreq/metrics.c} (99%)
diff --git a/kernel/sched/Makefile b/kernel/sched/Makefile
index 7fe1834..bc6bce0 100644
--- a/kernel/sched/Makefile
+++ b/kernel/sched/Makefile
@@ -19,13 +19,12 @@ endif
obj-y += core.o loadavg.o clock.o cputime.o
obj-y += idle.o fair.o rt.o deadline.o
obj-y += wait.o wait_bit.o swait.o completion.o
+obj-y += cpufreq/
obj-$(CONFIG_SMP) += cpupri.o cpudeadline.o topology.o stop_task.o pelt.o
obj-$(CONFIG_SCHED_AUTOGROUP) += autogroup.o
obj-$(CONFIG_SCHEDSTATS) += stats.o
obj-$(CONFIG_SCHED_DEBUG) += debug.o
obj-$(CONFIG_CGROUP_CPUACCT) += cpuacct.o
-obj-$(CONFIG_CPU_FREQ) += cpufreq.o
-obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o
obj-$(CONFIG_MEMBARRIER) += membarrier.o
obj-$(CONFIG_CPU_ISOLATION) += isolation.o
diff --git a/kernel/sched/cpufreq.c b/kernel/sched/cpufreq/core.c
similarity index 99%
rename from kernel/sched/cpufreq.c
rename to kernel/sched/cpufreq/core.c
index 5e54cbc..8c17a63 100644
--- a/kernel/sched/cpufreq.c
+++ b/kernel/sched/cpufreq/core.c
@@ -8,7 +8,7 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
-#include "sched.h"
+#include "../sched.h"
DEFINE_PER_CPU(struct update_util_data *, cpufreq_update_util_data);
diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq/metrics.c
similarity index 99%
rename from kernel/sched/cpufreq_schedutil.c
rename to kernel/sched/cpufreq/metrics.c
index 3fffad3..597df47 100644
--- a/kernel/sched/cpufreq_schedutil.c
+++ b/kernel/sched/cpufreq/metrics.c
@@ -11,7 +11,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-#include "sched.h"
+#include "../sched.h"
#include <trace/events/power.h>
--
2.7.4
Powered by blists - more mailing lists