From 6b3bc078fe302a61edec7ca39e24a6f4b2bf402d Mon Sep 17 00:00:00 2001 From: Soomin Kim Date: Wed, 13 Jul 2016 10:05:35 +0900 Subject: [PATCH] [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 --- drivers/thermal/samsung/exynos_tmu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } -- 2.20.1