ANDROID: drivers base/arch_topology: fold two pr_debug()'s into one
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Thu, 8 Jun 2017 10:13:29 +0000 (11:13 +0100)
committerChris Redpath <chris.redpath@arm.com>
Tue, 19 Dec 2017 13:25:44 +0000 (13:25 +0000)
Output cpu_capacity and raw_capacity in one pr_debug instead of using
two.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Change-Id: I71c50b0988a95ef723602585c8f2cc7017aea78e
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
drivers/base/arch_topology.c

index 1e9b9c16d07cf13395c1ecdab1326565ec6af7a8..e6341ac7b3945e272552b0db9b884b1d1f946a5e 100644 (file)
@@ -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);
 }