Revision 9870a5e6

b/vl.c
248 248
uint64_t node_mem[MAX_NODES];
249 249
uint64_t node_cpumask[MAX_NODES];
250 250

  
251
static QEMUTimer *nographic_timer;
252

  
253 251
uint8_t qemu_uuid[16];
254 252

  
255 253
static QEMUBootSetHandler *boot_set_handler;
......
1207 1205
    qemu_mod_timer(ds->gui_timer, interval + qemu_get_clock_ms(rt_clock));
1208 1206
}
1209 1207

  
1210
static void nographic_update(void *opaque)
1211
{
1212
    uint64_t interval = GUI_REFRESH_INTERVAL;
1213

  
1214
    qemu_mod_timer(nographic_timer, interval + qemu_get_clock_ms(rt_clock));
1215
}
1216

  
1217 1208
struct vm_change_state_entry {
1218 1209
    VMChangeStateHandler *cb;
1219 1210
    void *opaque;
......
3513 3504
        }
3514 3505
        dcl = dcl->next;
3515 3506
    }
3516
    if (ds->gui_timer == NULL) {
3517
        nographic_timer = qemu_new_timer_ms(rt_clock, nographic_update, NULL);
3518
        qemu_mod_timer(nographic_timer, qemu_get_clock_ms(rt_clock));
3519
    }
3520 3507
    text_consoles_set_display(ds);
3521 3508

  
3522 3509
    if (gdbstub_dev && gdbserver_start(gdbstub_dev) < 0) {

Also available in: Unified diff