Searched refs:count_hz (Results 1 – 4 of 4) sorted by relevance
353 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() argument630 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() argument657 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 …]
347 if (mips_hpt_frequency != vcpu->arch.count_hz) in kvm_vz_should_use_htimer()2122 *v = vcpu->arch.count_hz; in kvm_vz_get_one_reg()3076 unsigned long count_hz = 100*1000*1000; /* default to 100 MHz */ in kvm_vz_vcpu_setup() local3083 count_hz = mips_hpt_frequency; in kvm_vz_vcpu_setup()3084 kvm_mips_init_count(vcpu, count_hz); in kvm_vz_vcpu_setup()
846 *v = vcpu->arch.count_hz; in kvm_trap_emul_get_one_reg()
388 u32 count_hz; member1077 void kvm_mips_init_count(struct kvm_vcpu *vcpu, unsigned long count_hz);1080 int kvm_mips_set_count_hz(struct kvm_vcpu *vcpu, s64 count_hz);