From: Jinkyu, Yang Date: Tue, 18 Oct 2016 09:04:19 +0000 (+0900) Subject: [COMMON] thermal: samsung: declare external variable for GPU sysfs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ffbc0835b020db964aaf343c71a02ead45af5337;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: samsung: declare external variable for GPU sysfs Change-Id: Iebd1587701adb7f353ab1c57c8b5460167bf518b Signed-off-by: Jinkyu, Yang --- diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index dffdacd9393d..82f123ecd9bf 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -1281,6 +1281,11 @@ static int exynos_cpufreq_cooling_register(struct exynos_tmu_data *data) } #ifdef CONFIG_GPU_THERMAL + +#ifdef CONFIG_MALI_DEBUG_KERNEL_SYSFS +struct exynos_tmu_data *gpu_thermal_data = NULL; +#endif + static int exynos_gpufreq_cooling_register(struct exynos_tmu_data *data) { struct device_node *np, *child = NULL, *gchild, *ggchild; @@ -1337,6 +1342,10 @@ static int exynos_gpufreq_cooling_register(struct exynos_tmu_data *data) return -ENODEV; } +#ifdef CONFIG_MALI_DEBUG_KERNEL_SYSFS + gpu_thermal_data = data; +#endif + return ret; } #else