projects
/
GitHub
/
LineageOS
/
G12
/
android_hardware_amlogic_kernel-modules_mali-driver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
153cdec
)
enable extra class
author
Kasin Lee
<kasin.li@amlogic.com>
Mon, 30 Dec 2013 14:36:52 +0000
(22:36 +0800)
committer
Kasin Lee
<kasin.li@amlogic.com>
Mon, 30 Dec 2013 14:36:52 +0000
(22:36 +0800)
mali/linux/mali_kernel_linux.c
patch
|
blob
|
blame
|
history
diff --git
a/mali/linux/mali_kernel_linux.c
b/mali/linux/mali_kernel_linux.c
index 1e1c6885f55ff727580cc2b9ce1fc9f2dd9b136e..442cdcece615a0d6ec4e11226a84ae3da69d8136 100755
(executable)
--- a/
mali/linux/mali_kernel_linux.c
+++ b/
mali/linux/mali_kernel_linux.c
@@
-337,6
+337,8
@@
void mali_init_cpu_time_counters_on_all_cpus(int print_only)
}
#endif
+extern int mpgpu_class_init(void);
+extern void mpgpu_class_exit(void);
int mali_module_init(void)
{
@@
-385,6
+387,10
@@
int mali_module_init(void)
MALI_PRINT(("Mali device driver loaded\n"));
+#ifdef MODULE
+ mpgpu_class_init();
+#endif
+
return 0; /* Success */
}
@@
-404,7
+410,9
@@
void mali_module_exit(void)
MALI_DEBUG_PRINT(2, ("mali_module_exit() unregistering device\n"));
mali_platform_device_unregister();
#endif
-
+#ifdef MODULE
+ mpgpu_class_exit();
+#endif
MALI_PRINT(("Mali device driver unloaded\n"));
}