Skip to content

Commit b3a2740

Browse files
committed
Adapt arm64
1 parent 625c58f commit b3a2740

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

drivers/thermal/cpufreq_cooling.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ static u32 cpu_power_to_freq(struct cpufreq_cooling_device *cpufreq_cdev,
148148
static u32 get_load(struct cpufreq_cooling_device *cpufreq_cdev, int cpu,
149149
int cpu_idx)
150150
{
151-
unsigned long util = sched_cpu_util(cpu);
152-
153-
return (util * 100) / arch_scale_cpu_capacity(cpu);
151+
// unsigned long util = sched_cpu_util(cpu);
152+
// return (util * 100) / arch_scale_cpu_capacity(cpu);
153+
return 100;
154154
}
155155
#else /* !CONFIG_SMP */
156156
static u32 get_load(struct cpufreq_cooling_device *cpufreq_cdev, int cpu,

kernel/sched/sched.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -568,12 +568,6 @@ static inline long se_weight(struct sched_entity *se)
568568
return scale_load_down(se->load.weight);
569569
}
570570

571-
572-
static inline bool sched_asym_prefer(int a, int b)
573-
{
574-
return arch_asym_cpu_priority(a) > arch_asym_cpu_priority(b);
575-
}
576-
577571
struct perf_domain {
578572
struct em_perf_domain *em_pd;
579573
struct perf_domain *next;

kernel/sched/topology.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,8 +1291,6 @@ static void init_sched_groups_capacity(int cpu, struct sched_domain *sd)
12911291
for_each_cpu(cpu, sched_group_span(sg)) {
12921292
if (max_cpu < 0)
12931293
max_cpu = cpu;
1294-
else if (sched_asym_prefer(cpu, max_cpu))
1295-
max_cpu = cpu;
12961294
}
12971295
sg->asym_prefer_cpu = max_cpu;
12981296

0 commit comments

Comments
 (0)