From 65adcce33f9941955a2c852e89e22f5b32db9769 Mon Sep 17 00:00:00 2001 From: Shawn Guo Date: Mon, 29 Jul 2013 14:01:32 +0800 Subject: [PATCH] ENGR00240988: gpu: use dummy thermal notifier functions on 3.10 kernel The thermal notifier calls are not supported yet on 3.10 kernel. Let's use dummy functions for now. Signed-off-by: Shawn Guo --- .../hal/os/linux/kernel/gc_hal_kernel_driver.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c index 83118002db5a..8e7c5e230952 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c @@ -79,9 +79,20 @@ task_notify_func(struct notifier_block *self, unsigned long val, void *data) #define _GC_OBJ_ZONE gcvZONE_DRIVER #if gcdENABLE_FSCALE_VAL_ADJUST +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) +static inline int register_thermal_notifier(struct notifier_block *nb) +{ + return 0; +} +static inline int unregister_thermal_notifier(struct notifier_block *nb) +{ + return 0; +} +#else extern int register_thermal_notifier(struct notifier_block *nb); extern int unregister_thermal_notifier(struct notifier_block *nb); #endif +#endif MODULE_DESCRIPTION("Vivante Graphics Driver"); MODULE_LICENSE("GPL"); -- 2.39.5