Home
last modified time | relevance | path

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

/arch/mips/kvm/
Demulate.c353 return div_u64(delta * vcpu->arch.count_hz, NSEC_PER_SEC); in kvm_mips_ktime_to_count()
512 delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); in kvm_mips_resume_hrtimer()
587 delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); in kvm_mips_restore_hrtimer()
628 void kvm_mips_init_count(struct kvm_vcpu *vcpu, unsigned long count_hz) in kvm_mips_init_count() argument
630 vcpu->arch.count_hz = count_hz; in kvm_mips_init_count()
631 vcpu->arch.count_period = div_u64((u64)NSEC_PER_SEC << 32, count_hz); in kvm_mips_init_count()
649 int kvm_mips_set_count_hz(struct kvm_vcpu *vcpu, s64 count_hz) in kvm_mips_set_count_hz() argument
657 if (count_hz <= 0 || count_hz > NSEC_PER_SEC) in kvm_mips_set_count_hz()
660 if (vcpu->arch.count_hz == count_hz) in kvm_mips_set_count_hz()
673 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()
/arch/mips/include/asm/
Dkvm_host.h361 u32 count_hz; member
1063 void kvm_mips_init_count(struct kvm_vcpu *vcpu, unsigned long count_hz);
1066 int kvm_mips_set_count_hz(struct kvm_vcpu *vcpu, s64 count_hz);