svn commit: r237882 - stable/9/sys/dev/drm2

Alexander Motin mav at FreeBSD.org
Sun Jul 1 06:41:40 UTC 2012


Author: mav
Date: Sun Jul  1 06:41:39 2012
New Revision: 237882
URL: http://svn.freebsd.org/changeset/base/237882

Log:
  MFC r237718:
  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

Modified:
  stable/9/sys/dev/drm2/drmP.h
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/drm2/drmP.h
==============================================================================
--- stable/9/sys/dev/drm2/drmP.h	Sun Jul  1 06:34:17 2012	(r237881)
+++ stable/9/sys/dev/drm2/drmP.h	Sun Jul  1 06:41:39 2012	(r237882)
@@ -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;


More information about the svn-src-stable-9 mailing list