From: Kasin Lee Date: Wed, 7 Aug 2013 15:31:34 +0000 (+0800) Subject: function to mesure performence. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1e85edf06da26e19151d03af8aecdf8246ed546;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_mali-driver.git function to mesure performence. --- diff --git a/mali/platform/meson_platform/meson_main.c b/mali/platform/meson_platform/meson_main.c index 84bd98e..f3106c1 100755 --- a/mali/platform/meson_platform/meson_main.c +++ b/mali/platform/meson_platform/meson_main.c @@ -137,11 +137,18 @@ static struct platform_device mali_gpu_device = .dev.type = &mali_gpu_device_device_type, /* We should probably use the pm_domain instead of type on newer kernels */ }; +void mali_utilization_handler(unsigned int utilization_num) +{ + +} + static struct mali_gpu_device_data mali_gpu_data = { .shared_mem_size =CONFIG_MALI400_OS_MEMORY_SIZE * 1024 * 1024, .fb_start = 0x84000000, .fb_size = 0x06000000, + .utilization_interval = 1000, + .utilization_handler = mali_utilization_handler, }; int mali_platform_device_register(void)