summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-10-14 09:09:11 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-10-14 09:09:11 +0000
commitc6b6d05e8fdddbe72f143a535cd0b26d650a4258 (patch)
tree8a5a7e3b1fb04c21a2d02b973f85cd5725660317
parent0aad8dd4535d7df77a41d690227150f62b3b3e62 (diff)
don't multiply ticks by hz when result is compared to jiffies
Used in the return value of drm_sched_suspend_timeout() which nothing currently uses.
-rw-r--r--sys/dev/pci/drm/scheduler/sched_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/scheduler/sched_main.c b/sys/dev/pci/drm/scheduler/sched_main.c
index 6856c97d9f5..252a998550f 100644
--- a/sys/dev/pci/drm/scheduler/sched_main.c
+++ b/sys/dev/pci/drm/scheduler/sched_main.c
@@ -234,7 +234,7 @@ unsigned long drm_sched_suspend_timeout(struct drm_gpu_scheduler *sched)
#ifdef __linux__
sched_timeout = sched->work_tdr.timer.expires;
#else
- sched_timeout = sched->work_tdr.to.to_time * hz;
+ sched_timeout = sched->work_tdr.to.to_time;
#endif
/*