]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/ppc/ppc_booke.c
Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND
[mirror_qemu.git] / hw / ppc / ppc_booke.c
index b4c81d45e6c5dd374b4a346e5678d1346fa30e21..ab8d026c322123e9d009160158b323cf9944b26e 100644 (file)
@@ -165,7 +165,7 @@ static void booke_update_fixed_timer(CPUPPCState         *env,
         ticks += delta_tick;
     }
 
-    *next = now + muldiv64(ticks, get_ticks_per_sec(), tb_env->tb_freq);
+    *next = now + muldiv64(ticks, NANOSECONDS_PER_SECOND, tb_env->tb_freq);
     if ((*next < now) || (*next > INT64_MAX)) {
         /* Overflow, so assume the biggest number the qemu timer supports. */
         *next = INT64_MAX;