|
@@ -100,7 +100,7 @@ static void hw_guard_wait(struct panel_drv_data *ddata)
|
|
{
|
|
{
|
|
unsigned long wait = ddata->hw_guard_end - jiffies;
|
|
unsigned long wait = ddata->hw_guard_end - jiffies;
|
|
|
|
|
|
- if ((long)wait > 0 && wait <= ddata->hw_guard_wait) {
|
|
|
|
|
|
+ if ((long)wait > 0 && time_before_eq(wait, ddata->hw_guard_wait)) {
|
|
set_current_state(TASK_UNINTERRUPTIBLE);
|
|
set_current_state(TASK_UNINTERRUPTIBLE);
|
|
schedule_timeout(wait);
|
|
schedule_timeout(wait);
|
|
}
|
|
}
|