qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 39/67] ui/console: fold text_console_update_cursor_timer


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 39/67] ui/console: fold text_console_update_cursor_timer
Date: Wed, 30 Aug 2023 17:15:48 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0

On 30/8/23 11:38, marcandre.lureau@redhat.com wrote:
From: Marc-André Lureau <marcandre.lureau@redhat.com>

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
  ui/console.c | 10 ++--------
  1 file changed, 2 insertions(+), 8 deletions(-)


  static void text_console_update_cursor(void *opaque)
  {
      QemuConsole *s;
@@ -2520,7 +2513,8 @@ static void text_console_update_cursor(void *opaque)
      }
if (count) {
-        text_console_update_cursor_timer();
+        timer_mod(cursor_timer, qemu_clock_get_ms(QEMU_CLOCK_REALTIME)
+                  + CONSOLE_CURSOR_PERIOD / 2);

This should be padded here         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

      }
  }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]