Home
last modified time | relevance | path

Searched refs:tsc (Results 1 – 23 of 23) sorted by relevance

/arch/x86/include/asm/
Dstackprotector.h61 u64 tsc; in boot_init_stack_canary() local
73 tsc = __native_read_tsc(); in boot_init_stack_canary()
74 canary += tsc + (tsc << 32UL); in boot_init_stack_canary()
/arch/c6x/kernel/
Dtime.c47 u64 tsc = get_cycles(); in sched_clock() local
49 return (tsc * sched_clock_multiplier) >> SCHED_CLOCK_SHIFT; in sched_clock()
/arch/x86/kernel/
Dtsc.c443 u64 tsc, t1, t2, delta; in pit_calibrate_tsc() local
459 tsc = t1 = t2 = get_cycles(); in pit_calibrate_tsc()
466 delta = t2 - tsc; in pit_calibrate_tsc()
467 tsc = t2; in pit_calibrate_tsc()
538 u64 tsc = 0, prev_tsc = 0; in pit_expect_msb() local
543 prev_tsc = tsc; in pit_expect_msb()
544 tsc = get_cycles(); in pit_expect_msb()
547 *tscp = tsc; in pit_expect_msb()
568 u64 tsc, delta; in quick_pit_calibrate() local
597 if (pit_expect_msb(0xff, &tsc, &d1)) { in quick_pit_calibrate()
[all …]
DMakefile48 obj-y += tsc.o tsc_msr.o io_delay.o rtc.o
/arch/x86/include/uapi/asm/
Dmce.h14 __u64 tsc; /* cpu time stamp counter */ member
/arch/x86/kernel/apic/
Dapic.c495 u64 tsc; in lapic_next_deadline() local
497 rdtscll(tsc); in lapic_next_deadline()
498 wrmsrl(MSR_IA32_TSC_DEADLINE, tsc + (((u64) delta) * TSC_DIVISOR)); in lapic_next_deadline()
627 unsigned long long tsc = 0; in lapic_cal_handler() local
632 rdtscll(tsc); in lapic_cal_handler()
637 lapic_cal_tsc1 = tsc; in lapic_cal_handler()
644 lapic_cal_tsc2 = tsc; in lapic_cal_handler()
1306 unsigned long long tsc = 0, ntsc; in setup_local_APIC() local
1310 rdtscll(tsc); in setup_local_APIC()
1395 max_loops = (cpu_khz << 10) - (ntsc - tsc); in setup_local_APIC()
/arch/s390/include/asm/
Detr.h220 unsigned int tsc : 1; /* Timing status change */ member
/arch/arm/boot/dts/
Dlpc32xx.dtsi278 tsc@40048000 {
279 compatible = "nxp,lpc3220-tsc";
Dimx25.dtsi268 tsc: tsc@50030000 { label
269 compatible = "fsl,imx25-adc", "fsl,imx21-tsc";
Dphy3250.dts174 tsc@40048000 {
Dmmp2-brownstone.dts39 maxim,tsc-irq = <0>;
Dprima2.dtsi361 tsc@b0110000 {
362 compatible = "sirf,prima2-tsc";
Datlas6.dtsi353 tsc@b0110000 {
354 compatible = "sirf,prima2-tsc";
Dmarco.dtsi353 tsc@cc110000 {
354 compatible = "sirf,marco-tsc";
Dam33xx.dtsi775 tsc {
776 compatible = "ti,am3359-tsc";
Dam335x-pepper.dts501 tsc {
Dam335x-evm.dts639 tsc {
Dam335x-evmsk.dts682 tsc {
/arch/x86/kernel/cpu/mcheck/
Dmce.c126 rdtscll(m->tsc); in mce_setup()
268 pr_emerg(HW_ERR "TSC %llx ", m->tsc); in print_mce()
612 m.tsc = 0; in machine_check_poll()
633 m.tsc = 0; in machine_check_poll()
1870 if (m->finished && m->tsc < cpu_tsc[m->cpu]) { in mce_chrdev_read()
/arch/x86/kvm/
Dsvm.c212 static u64 __scale_tsc(u64 ratio, u64 tsc);
969 static u64 __scale_tsc(u64 ratio, u64 tsc) in __scale_tsc() argument
976 _tsc = tsc; in __scale_tsc()
978 _tsc += (tsc >> 32) * frac; in __scale_tsc()
979 _tsc += ((tsc & ((1ULL << 32) - 1)) * frac) >> 32; in __scale_tsc()
984 static u64 svm_scale_tsc(struct kvm_vcpu *vcpu, u64 tsc) in svm_scale_tsc() argument
987 u64 _tsc = tsc; in svm_scale_tsc()
990 _tsc = __scale_tsc(svm->tsc_ratio, tsc); in svm_scale_tsc()
1078 u64 tsc; in svm_compute_tsc_offset() local
1080 tsc = svm_scale_tsc(vcpu, native_read_tsc()); in svm_compute_tsc_offset()
[all …]
Dx86.c1226 u64 tsc = pvclock_scale_delta(kernel_ns-vcpu->arch.this_tsc_nsec, in compute_guest_tsc() local
1229 tsc += vcpu->arch.this_tsc_write; in compute_guest_tsc()
1230 return tsc; in compute_guest_tsc()
1614 u64 tsc = compute_guest_tsc(v, kernel_ns); in kvm_guest_time_update() local
1615 if (tsc > tsc_timestamp) { in kvm_guest_time_update()
1616 adjust_tsc_offset_guest(v, tsc - tsc_timestamp); in kvm_guest_time_update()
1617 tsc_timestamp = tsc; in kvm_guest_time_update()
Demulate.c3084 u64 tsc = 0; in em_rdtsc() local
3086 ctxt->ops->get_msr(ctxt, MSR_IA32_TSC, &tsc); in em_rdtsc()
3087 *reg_write(ctxt, VCPU_REGS_RAX) = (u32)tsc; in em_rdtsc()
3088 *reg_write(ctxt, VCPU_REGS_RDX) = tsc >> 32; in em_rdtsc()
/arch/s390/kernel/
Dtime.c1496 if (intparm->tsc || intparm->lac || intparm->tcpc) in stp_timing_alert()