Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2012 17:15:17 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r237718 - head/sys/dev/drm2
Message-ID:  <201206281715.q5SHFHu4088257@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Jun 28 17:15:16 2012
New Revision: 237718
URL: http://svn.freebsd.org/changeset/base/237718

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

Modified:
  head/sys/dev/drm2/drmP.h

Modified: head/sys/dev/drm2/drmP.h
==============================================================================
--- head/sys/dev/drm2/drmP.h	Thu Jun 28 16:54:10 2012	(r237717)
+++ head/sys/dev/drm2/drmP.h	Thu Jun 28 17:15:16 2012	(r237718)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206281715.q5SHFHu4088257>