mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
s/cpu_get_real_ticks/cpu_get_host_ticks/
This should help clarify the purpose of the function that returns the host system's CPU cycle count. Signed-off-by: Christopher Covington <cov@codeaurora.org> Acked-by: Paolo Bonzini <pbonzini@redhat.com> ppc portion Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
ec5fd40264
commit
4a7428c5a7
7 changed files with 20 additions and 20 deletions
|
@ -848,7 +848,7 @@ static target_ulong h_xirr_x(PowerPCCPU *cpu, sPAPRMachineState *spapr,
|
|||
uint32_t xirr = icp_accept(ss);
|
||||
|
||||
args[0] = xirr;
|
||||
args[1] = cpu_get_real_ticks();
|
||||
args[1] = cpu_get_host_ticks();
|
||||
return H_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -834,7 +834,7 @@ static void cpu_ppc_set_tb_clk (void *opaque, uint32_t freq)
|
|||
static void timebase_pre_save(void *opaque)
|
||||
{
|
||||
PPCTimebase *tb = opaque;
|
||||
uint64_t ticks = cpu_get_real_ticks();
|
||||
uint64_t ticks = cpu_get_host_ticks();
|
||||
PowerPCCPU *first_ppc_cpu = POWERPC_CPU(first_cpu);
|
||||
|
||||
if (!first_ppc_cpu->env.tb_env) {
|
||||
|
@ -878,7 +878,7 @@ static int timebase_post_load(void *opaque, int version_id)
|
|||
NANOSECONDS_PER_SECOND);
|
||||
guest_tb = tb_remote->guest_timebase + MIN(0, migration_duration_tb);
|
||||
|
||||
tb_off_adj = guest_tb - cpu_get_real_ticks();
|
||||
tb_off_adj = guest_tb - cpu_get_host_ticks();
|
||||
|
||||
tb_off = first_ppc_cpu->env.tb_env->tb_offset;
|
||||
trace_ppc_tb_adjust(tb_off, tb_off_adj, tb_off_adj - tb_off,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue