gpu:replace the magic number with msecs_to_jiffies [1/1]
authorJiyu Yang <Jiyu.Yang@amlogic.com>
Thu, 7 Sep 2017 03:15:42 +0000 (11:15 +0800)
committerJiyu Yang <jiyu.yang@amlogic.com>
Thu, 14 Sep 2017 05:26:24 +0000 (22:26 -0700)
PD#150542:replace the magic number with msecs_to_jiffies.

Change-Id: I6c5859ddcd487cf458acd3219d7469d13f6dd78e

mali/linux/mali_kernel_linux.c
utgard/r5p1/linux/mali_kernel_linux.c
utgard/r6p1/linux/mali_kernel_linux.c
utgard/r6p2/linux/mali_kernel_linux.c
utgard/r7p0/linux/mali_kernel_linux.c [changed mode: 0644->0755]

index 4181e9747378b170fdbbdc655005d1c84af224ea..70dab67a29e5f2d447b024733731b266667e18cb 100755 (executable)
@@ -366,7 +366,7 @@ void mali_init_cpu_time_counters_on_all_cpus(int print_only)
        int jiffies_trigger;
        int jiffies_wait;
 
-       jiffies_wait = 2;
+       jiffies_wait = msecs_to_jiffies(20);
        jiffies_trigger = jiffies + jiffies_wait;
 
        for (i = 0 ; i < 8 ; i++) {
index 874da42810aebcdd3dfb59bf21b3b9f2ce9a0de4..b5dede60c24df066fd709cf23b2a94be87cb2012 100755 (executable)
@@ -335,7 +335,7 @@ void mali_init_cpu_time_counters_on_all_cpus(int print_only)
        int jiffies_trigger;
        int jiffies_wait;
 
-       jiffies_wait = 2;
+       jiffies_wait = msecs_to_jiffies(20);
        jiffies_trigger = jiffies + jiffies_wait;
 
        for (i = 0 ; i < 8 ; i++) {
index 4181e9747378b170fdbbdc655005d1c84af224ea..70dab67a29e5f2d447b024733731b266667e18cb 100755 (executable)
@@ -366,7 +366,7 @@ void mali_init_cpu_time_counters_on_all_cpus(int print_only)
        int jiffies_trigger;
        int jiffies_wait;
 
-       jiffies_wait = 2;
+       jiffies_wait = msecs_to_jiffies(20);
        jiffies_trigger = jiffies + jiffies_wait;
 
        for (i = 0 ; i < 8 ; i++) {
index 4181e9747378b170fdbbdc655005d1c84af224ea..70dab67a29e5f2d447b024733731b266667e18cb 100755 (executable)
@@ -366,7 +366,7 @@ void mali_init_cpu_time_counters_on_all_cpus(int print_only)
        int jiffies_trigger;
        int jiffies_wait;
 
-       jiffies_wait = 2;
+       jiffies_wait = msecs_to_jiffies(20);
        jiffies_trigger = jiffies + jiffies_wait;
 
        for (i = 0 ; i < 8 ; i++) {
old mode 100644 (file)
new mode 100755 (executable)
index 84bf675..c5b9f67
@@ -366,7 +366,7 @@ void mali_init_cpu_time_counters_on_all_cpus(int print_only)
        int jiffies_trigger;
        int jiffies_wait;
 
-       jiffies_wait = 2;
+       jiffies_wait = msecs_to_jiffies(20);
        jiffies_trigger = jiffies + jiffies_wait;
 
        for (i = 0 ; i < 8 ; i++) {