Home
last modified time | relevance | path

Searched refs:count_hz (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/arch/mips/kvm/
Demulate.c352 return div_u64(delta * vcpu->arch.count_hz, NSEC_PER_SEC); in kvm_mips_ktime_to_count()
511 delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); in kvm_mips_resume_hrtimer()
586 delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); in kvm_mips_restore_hrtimer()
627 void kvm_mips_init_count(struct kvm_vcpu *vcpu, unsigned long count_hz) in kvm_mips_init_count() argument
629 vcpu->arch.count_hz = count_hz; in kvm_mips_init_count()
630 vcpu->arch.count_period = div_u64((u64)NSEC_PER_SEC << 32, count_hz); in kvm_mips_init_count()
648 int kvm_mips_set_count_hz(struct kvm_vcpu *vcpu, s64 count_hz) in kvm_mips_set_count_hz() argument
656 if (count_hz <= 0 || count_hz > NSEC_PER_SEC) in kvm_mips_set_count_hz()
659 if (vcpu->arch.count_hz == count_hz) in kvm_mips_set_count_hz()
672 vcpu->arch.count_hz = count_hz; in kvm_mips_set_count_hz()
[all …]
Dvz.c370 if (mips_hpt_frequency != vcpu->arch.count_hz) in kvm_vz_should_use_htimer()
2035 *v = vcpu->arch.count_hz; in kvm_vz_get_one_reg()
2968 unsigned long count_hz = 100*1000*1000; /* default to 100 MHz */ in kvm_vz_vcpu_setup() local
2975 count_hz = mips_hpt_frequency; in kvm_vz_vcpu_setup()
2976 kvm_mips_init_count(vcpu, count_hz); in kvm_vz_vcpu_setup()
Dtrap_emul.c854 *v = vcpu->arch.count_hz; in kvm_trap_emul_get_one_reg()
/Linux-v4.19/arch/mips/include/asm/
Dkvm_host.h357 u32 count_hz; member
1056 void kvm_mips_init_count(struct kvm_vcpu *vcpu, unsigned long count_hz);
1059 int kvm_mips_set_count_hz(struct kvm_vcpu *vcpu, s64 count_hz);