video: fbdev: omap2: omapfb: displays: panel-dsi-cm: Use time comparison kernel macro.
Use time_before_eq() kernel macro for time comparison. Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com> Cc: tomi.valkeinen@ti.com Cc: peter.ujfalusi@ti.com Cc: tj@kernel.org Cc: mingo@kernel.org [b.zolnierkie: patch description fixup] Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
parent
927f7a17eb
commit
ac5b52d2a2
@ -100,7 +100,7 @@ static void hw_guard_wait(struct panel_drv_data *ddata)
|
||||
{
|
||||
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);
|
||||
schedule_timeout(wait);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user