]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00240988: gpu: use dummy thermal notifier functions on 3.10 kernel
authorShawn Guo <shawn.guo@freescale.com>
Mon, 29 Jul 2013 06:01:32 +0000 (14:01 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:08 +0000 (10:06 +0200)
The thermal notifier calls are not supported yet on 3.10 kernel.  Let's
use dummy functions for now.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c

index 83118002db5aab61d8040b402d9ecf52f49338fb..8e7c5e23095268231e75e4d0d27020e6c3dbf0e9 100644 (file)
@@ -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");