From: Dietmar Eggemann Date: Thu, 8 Jun 2017 10:13:29 +0000 (+0100) Subject: ANDROID: drivers base/arch_topology: fold two pr_debug()'s into one X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=099a3e4ffcee493addc5bc9a39d324fe8007e52b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ANDROID: drivers base/arch_topology: fold two pr_debug()'s into one Output cpu_capacity and raw_capacity in one pr_debug instead of using two. Signed-off-by: Dietmar Eggemann Change-Id: I71c50b0988a95ef723602585c8f2cc7017aea78e Signed-off-by: Chris Redpath --- diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 1e9b9c16d07c..e6341ac7b394 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -238,13 +238,12 @@ void topology_normalize_cpu_scale(void) pr_debug("cpu_capacity: capacity_scale=%u\n", capacity_scale); mutex_lock(&cpu_scale_mutex); for_each_possible_cpu(cpu) { - pr_debug("cpu_capacity: cpu=%d raw_capacity=%u\n", - cpu, raw_capacity[cpu]); capacity = (raw_capacity[cpu] << SCHED_CAPACITY_SHIFT) / capacity_scale; topology_set_cpu_scale(cpu, capacity); - pr_debug("cpu_capacity: CPU%d cpu_capacity=%lu\n", - cpu, topology_get_cpu_scale(NULL, cpu)); + pr_debug("cpu_capacity: CPU%d cpu_capacity=%lu raw_capacity=%u\n", + cpu, topology_get_cpu_scale(NULL, cpu), + raw_capacity[cpu]); } mutex_unlock(&cpu_scale_mutex); }