Paolo Bonzini 2e91cc62f2 cpu-exec: simplify init_delay_params
With the introduction of QEMU_CLOCK_VIRTUAL_RT, the computation of
sc->diff_clk can be simplified nicely:

        qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) -
        qemu_clock_get_ns(QEMU_CLOCK_REALTIME) +
        cpu_get_clock_offset()

     =  qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) -
        (qemu_clock_get_ns(QEMU_CLOCK_REALTIME) - cpu_get_clock_offset())

     =  qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) -
        (qemu_clock_get_ns(QEMU_CLOCK_REALTIME) + timers_state.cpu_clock_offset)

     =  qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) -
        qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL_RT)

Cc: Sebastian Tanase <sebastian.tanase@openwide.fr>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-02-02 16:55:11 +01:00
..
2015-02-02 16:55:10 +01:00
2014-11-02 10:04:34 +03:00
2014-11-02 10:04:34 +03:00
2014-10-09 15:36:15 +02:00
2013-02-16 11:11:34 +00:00
2014-05-30 13:00:28 -06:00
2014-12-16 18:43:19 +00:00
2014-02-20 13:14:18 +01:00
2015-02-02 16:55:10 +01:00
2014-06-19 18:44:19 +03:00
2015-02-02 16:55:10 +01:00
2014-02-01 13:46:06 +04:00
2014-03-13 14:42:21 +01:00
2015-01-16 13:06:17 +05:30
2013-10-17 17:30:55 +02:00
2013-10-17 17:30:55 +02:00
2015-02-02 16:55:10 +01:00
2015-02-02 16:55:11 +01:00
2015-01-20 14:24:07 +00:00