From 099a3e4ffcee493addc5bc9a39d324fe8007e52b Mon Sep 17 00:00:00 2001 From: Dietmar Eggemann Date: Thu, 8 Jun 2017 11:13:29 +0100 Subject: [PATCH] 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 --- drivers/base/arch_topology.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); } -- 2.20.1