log_msg: too much logging messages for topology
authorJiamin Ma <jiamin.ma@amlogic.com>
Tue, 13 Mar 2018 07:32:32 +0000 (15:32 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 13 Mar 2018 08:56:50 +0000 (00:56 -0800)
PD#138714: lowering log level to debug for cpu_cluster_energy and
cpu_core_energy and disabling their logging by default

Change-Id: Ie515d892aa4ff0c77a5393c1b9f67b4f0c463b3e
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
arch/arm64/kernel/topology.c

index 7758f7f..8bede6c 100644 (file)
@@ -233,7 +233,11 @@ const struct sched_group_energy * const cpu_cluster_energy(int cpu)
        struct sched_group_energy *sge = sge_array[cpu][SD_LEVEL1];
 
        if (!sge) {
+#ifdef CONFIG_AMLOGIC_MODIFY
+               pr_debug("Invalid sched_group_energy for Cluster%d\n", cpu);
+#else
                pr_warn("Invalid sched_group_energy for Cluster%d\n", cpu);
+#endif
                return NULL;
        }
 
@@ -246,7 +250,11 @@ const struct sched_group_energy * const cpu_core_energy(int cpu)
        struct sched_group_energy *sge = sge_array[cpu][SD_LEVEL0];
 
        if (!sge) {
+#ifdef CONFIG_AMLOGIC_MODIFY
+               pr_debug("Invalid sched_group_energy for Cluster%d\n", cpu);
+#else
                pr_warn("Invalid sched_group_energy for CPU%d\n", cpu);
+#endif
                return NULL;
        }