diff options
author | mav <mav@FreeBSD.org> | 2012-06-28 17:15:16 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2012-06-28 17:15:16 +0000 |
commit | 1ebfb4a3f7aa1863fd806c0a54db3528e8d47b87 (patch) | |
tree | 79fd94d29ee270d1860ae8cbaaaa4588cca53b58 /sys | |
parent | a4279bd26d8f39f95ccd327577db829bdcb3d89c (diff) | |
download | FreeBSD-src-1ebfb4a3f7aa1863fd806c0a54db3528e8d47b87.zip FreeBSD-src-1ebfb4a3f7aa1863fd806c0a54db3528e8d47b87.tar.gz |
Fix millisecond to ticks conversion in drm_msleep().
On systems with HZ=100 it caused Intel eDP video output initialization
(and Xorg startup) to take several minutes instead of several seconds.
Reviewed by: kib
MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/drm2/drmP.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm2/drmP.h b/sys/dev/drm2/drmP.h index f216d03..16227b5 100644 --- a/sys/dev/drm2/drmP.h +++ b/sys/dev/drm2/drmP.h @@ -250,7 +250,7 @@ enum { #define msecs_to_jiffies(x) (((int64_t)(x)) * hz / 1000) #define time_after(a,b) ((long)(b) - (long)(a) < 0) #define time_after_eq(a,b) ((long)(b) - (long)(a) <= 0) -#define drm_msleep(x, msg) pause((msg), ((int64_t)(x)) * 1000 / hz) +#define drm_msleep(x, msg) pause((msg), ((int64_t)(x)) * hz / 1000) typedef vm_paddr_t dma_addr_t; typedef uint64_t u64; |