From: Soomin Kim Date: Wed, 13 Jul 2016 01:05:35 +0000 (+0900) Subject: [COMMON] thermal: samsung: Print mask value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b3bc078fe302a61edec7ca39e24a6f4b2bf402d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: samsung: Print mask value When cooling device register is failed, print mask_val for debugging. Change-Id: I07558f7d0e9d0d84e02dd4b18f9da7a5910b101f Signed-off-by: Soomin Kim --- diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 214ab07aae35..72bfe84bffc5 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -1195,14 +1195,15 @@ static int exynos_cpufreq_cooling_register(struct exynos_tmu_data *data) cool_np = cooling_spec.np; - for_each_possible_cpu(cpu) { - if (cpu_topology[cpu].cluster_id == data->id) { + for_each_possible_cpu(cpu) + if (cpu_topology[cpu].cluster_id == data->id) cpumask_copy(&mask_val, topology_core_cpumask(cpu)); - } - } data->cool_dev = of_cpufreq_cooling_register(cool_np, &mask_val); + if (IS_ERR(data->cool_dev)) + pr_err("cooling device register fail (mask = %x) \n", *(unsigned int*)cpumask_bits(&mask_val)); + return ret; }