PD #150542: use mali internal api to convert ms to jiffies.
Change-Id: Ic59c319cea9413160eacf937792957653519e0a5
int jiffies_trigger;
int jiffies_wait;
- jiffies_wait = msecs_to_jiffies(20);
+ jiffies_wait = _mali_osk_time_mstoticks(20);
jiffies_trigger = jiffies + jiffies_wait;
for (i = 0 ; i < 8 ; i++) {
init_waitqueue_head(&data.wq);
trigger_func(probe_data);
- wait_event_timeout(data.wq, data.interrupt_received, 100);
+ wait_event_timeout(data.wq, data.interrupt_received, _mali_osk_time_mstoticks(1000));
free_irq(irqnum, &data);
int jiffies_trigger;
int jiffies_wait;
- jiffies_wait = msecs_to_jiffies(20);
+ jiffies_wait = _mali_osk_time_mstoticks(20);
jiffies_trigger = jiffies + jiffies_wait;
for (i = 0 ; i < 8 ; i++) {
init_waitqueue_head(&data.wq);
trigger_func(probe_data);
- wait_event_timeout(data.wq, data.interrupt_received, 100);
+ wait_event_timeout(data.wq, data.interrupt_received, _mali_osk_time_mstoticks(1000));
free_irq(irqnum, &data);
int jiffies_trigger;
int jiffies_wait;
- jiffies_wait = msecs_to_jiffies(20);
+ jiffies_wait = _mali_osk_time_mstoticks(20);
jiffies_trigger = jiffies + jiffies_wait;
for (i = 0 ; i < 8 ; i++) {
init_waitqueue_head(&data.wq);
trigger_func(probe_data);
- wait_event_timeout(data.wq, data.interrupt_received, 100);
+ wait_event_timeout(data.wq, data.interrupt_received, _mali_osk_time_mstoticks(1000));
free_irq(irqnum, &data);
int jiffies_trigger;
int jiffies_wait;
- jiffies_wait = msecs_to_jiffies(20);
+ jiffies_wait = _mali_osk_time_mstoticks(20);
jiffies_trigger = jiffies + jiffies_wait;
for (i = 0 ; i < 8 ; i++) {
init_waitqueue_head(&data.wq);
trigger_func(probe_data);
- wait_event_timeout(data.wq, data.interrupt_received, 100);
+ wait_event_timeout(data.wq, data.interrupt_received, _mali_osk_time_mstoticks(1000));
free_irq(irqnum, &data);
init_waitqueue_head(&data.wq);
trigger_func(probe_data);
- wait_event_timeout(data.wq, data.interrupt_received, 100);
+ wait_event_timeout(data.wq, data.interrupt_received, _mali_osk_time_mstoticks(1000));
free_irq(irqnum, &data);