Searched refs:count_hz (Results 1 – 3 of 3) sorted by relevance
354 return div_u64(delta * vcpu->arch.count_hz, NSEC_PER_SEC); in kvm_mips_ktime_to_count()513 delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); in kvm_mips_resume_hrtimer()588 delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); in kvm_mips_restore_hrtimer()629 void kvm_mips_init_count(struct kvm_vcpu *vcpu, unsigned long count_hz) in kvm_mips_init_count() argument631 vcpu->arch.count_hz = count_hz; in kvm_mips_init_count()632 vcpu->arch.count_period = div_u64((u64)NSEC_PER_SEC << 32, count_hz); in kvm_mips_init_count()650 int kvm_mips_set_count_hz(struct kvm_vcpu *vcpu, s64 count_hz) in kvm_mips_set_count_hz() argument658 if (count_hz <= 0 || count_hz > NSEC_PER_SEC) in kvm_mips_set_count_hz()661 if (vcpu->arch.count_hz == count_hz) in kvm_mips_set_count_hz()674 vcpu->arch.count_hz = count_hz; in kvm_mips_set_count_hz()[all …]
346 if (mips_hpt_frequency != vcpu->arch.count_hz) in kvm_vz_should_use_htimer()2126 *v = vcpu->arch.count_hz; in kvm_vz_get_one_reg()3080 unsigned long count_hz = 100*1000*1000; /* default to 100 MHz */ in kvm_vz_vcpu_setup() local3087 count_hz = mips_hpt_frequency; in kvm_vz_vcpu_setup()3088 kvm_mips_init_count(vcpu, count_hz); in kvm_vz_vcpu_setup()
333 u32 count_hz; member852 void kvm_mips_init_count(struct kvm_vcpu *vcpu, unsigned long count_hz);855 int kvm_mips_set_count_hz(struct kvm_vcpu *vcpu, s64 count_hz);