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
This commit is contained in:
Alexander Motin 2012-06-28 17:15:16 +00:00
parent fed980b201
commit d7f7144a73

View File

@ -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;