aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoren HUANG <b02279@freescale.com>2013-08-19 10:29:36 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:01:23 -0400
commitd5954fd96aa9b7657e8ba43d48c34e12445115d0 (patch)
tree1060fb03d7cf10c5b70962f80f76988203494fbc
parentb4592b9202aa70e11b4d398fd7646dd5e62e9eb4 (diff)
ENGR00275739 Correct GPU delay implmentation in kernel code
Original code can't handle delay larger than 1s. Signed-by: Loren Huang <b02279@freescale.com> Acked-by: Shawn Guo
-rw-r--r--drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
index ed374370a9e4..87400388a134 100644
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c
@@ -3648,7 +3648,7 @@ gckOS_Delay(
3648 if (Delay > 0) 3648 if (Delay > 0)
3649 { 3649 {
3650#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28) 3650#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28)
3651 ktime_t delay = ktime_set(0, Delay * NSEC_PER_MSEC); 3651 ktime_t delay = ktime_set(Delay/1000, (Delay%1000) * NSEC_PER_MSEC);
3652 __set_current_state(TASK_UNINTERRUPTIBLE); 3652 __set_current_state(TASK_UNINTERRUPTIBLE);
3653 schedule_hrtimeout(&delay, HRTIMER_MODE_REL); 3653 schedule_hrtimeout(&delay, HRTIMER_MODE_REL);
3654#else 3654#else