[Openchrome-devel] drm-openchrome: drivers/gpu/drm

James Simmons jsimmons at kemper.freedesktop.org
Sat Jan 17 12:18:06 PST 2015


 drivers/gpu/drm/via/via_h1_cmdbuf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 12e8a352c7097897ef98f4ef3beb4140e3d98f22
Author: James Simmons <jsimmons at infradead.org>
Date:   Sat Jan 17 13:16:55 2015 -0700

    via: Checkpatch warning fix: use usleep_range instead of
         msleep for sleep under 20ms.
    
    Signed-off-by: Mario J. Rugiero <mrugiero at tecnoaccion.com.ar>
    Reviewed-by:   James Simmons <jsimmons at infradead.org>

diff --git a/drivers/gpu/drm/via/via_h1_cmdbuf.c b/drivers/gpu/drm/via/via_h1_cmdbuf.c
index 00b67ea..c934990 100644
--- a/drivers/gpu/drm/via/via_h1_cmdbuf.c
+++ b/drivers/gpu/drm/via/via_h1_cmdbuf.c
@@ -99,7 +99,7 @@ via_cmdbuf_wait(struct drm_via_private *dev_priv, unsigned int size)
 			return -1;
 		}
 		if  ((cur_addr < hw_addr) && (next_addr >= hw_addr))
-			msleep(1);
+			usleep_range(500, 2000);
 	} while ((cur_addr < hw_addr) && (next_addr >= hw_addr));
 	return 0;
 }


More information about the Openchrome-devel mailing list