projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
810a5b6
)
arm64: Set SD_ASYM_CPUCAPACITY sched_domain flag on DIE level
author
Dietmar Eggemann
<dietmar.eggemann@arm.com>
Wed, 30 Nov 2016 20:36:31 +0000
(20:36 +0000)
committer
Amit Pundir
<amit.pundir@linaro.org>
Wed, 21 Jun 2017 11:07:28 +0000
(16:37 +0530)
Enable Capacity-Aware_scheduling.
This is a shortcut from the EAS integration implementation. We know
there are SoCs in use which have asymmetric cpu capacities on DIE level.
Change-Id: I7f1326e86b8fc08b65d1c1341da7d1ef1013dcbc
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
(cherry picked from commit
82f95a8cdff67770f02b7e4f5b1c084f42afc0e2
)
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
arch/arm64/kernel/topology.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/topology.c
b/arch/arm64/kernel/topology.c
index 5b2c67a510d8a5ecbed84300b6118248432a3cc2..7758f7ff131b307523be233ebc4cc343559e0e90 100644
(file)
--- a/
arch/arm64/kernel/topology.c
+++ b/
arch/arm64/kernel/topology.c
@@
-258,6
+258,11
@@
const struct cpumask *cpu_coregroup_mask(int cpu)
return &cpu_topology[cpu].core_sibling;
}
+static int cpu_cpu_flags(void)
+{
+ return SD_ASYM_CPUCAPACITY;
+}
+
static inline int cpu_corepower_flags(void)
{
return SD_SHARE_PKG_RESOURCES | SD_SHARE_POWERDOMAIN | \
@@
-268,7
+273,7
@@
static struct sched_domain_topology_level arm64_topology[] = {
#ifdef CONFIG_SCHED_MC
{ cpu_coregroup_mask, cpu_corepower_flags, cpu_core_energy, SD_INIT_NAME(MC) },
#endif
- { cpu_cpu_mask,
NULL
, cpu_cluster_energy, SD_INIT_NAME(DIE) },
+ { cpu_cpu_mask,
cpu_cpu_flags
, cpu_cluster_energy, SD_INIT_NAME(DIE) },
{ NULL, },
};