Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Don't throttle the frame rate.



details:   https://anonhg.NetBSD.org/src/rev/e75a797860d5
branches:  trunk
changeset: 369882:e75a797860d5
user:      nat <nat%NetBSD.org@localhost>
date:      Tue Sep 06 02:23:50 2022 +0000

description:
Don't throttle the frame rate.

Throttling of the frame rate is no longer necessary as most screen updates are
now partial updates.

diffstat:

 sys/dev/usb/udl.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 57537a2b5605 -r e75a797860d5 sys/dev/usb/udl.c
--- a/sys/dev/usb/udl.c Tue Sep 06 02:20:17 2022 +0000
+++ b/sys/dev/usb/udl.c Tue Sep 06 02:23:50 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udl.c,v 1.29 2022/09/06 02:20:17 nat Exp $     */
+/*     $NetBSD: udl.c,v 1.30 2022/09/06 02:23:50 nat Exp $     */
 
 /*-
  * Copyright (c) 2009 FUKAUMI Naoki.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udl.c,v 1.29 2022/09/06 02:20:17 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udl.c,v 1.30 2022/09/06 02:23:50 nat Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1855,8 +1855,7 @@
                }
                count++;
 
-
-               kpause("udlslp", false, (40 * hz)/1000 + 1, &sc->sc_thread_mtx);
+               kpause("udlslp", false, 1, &sc->sc_thread_mtx);
                continue;
 
 thread_wait:



Home | Main Index | Thread Index | Old Index