Home
last modified time | relevance | path

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

12

/arch/x86/include/asm/
Dstackprotector.h64 u64 tsc; in boot_init_stack_canary() local
76 tsc = rdtsc(); in boot_init_stack_canary()
77 canary += tsc + (tsc << 32UL); in boot_init_stack_canary()
Dpvclock.h82 u64 __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src, u64 tsc) in __pvclock_read_cycles() argument
84 u64 delta = tsc - src->tsc_timestamp; in __pvclock_read_cycles()
Dtsc.h41 extern unsigned long long native_sched_clock_from_tsc(u64 tsc);
/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.c218 u64 native_sched_clock_from_tsc(u64 tsc) in native_sched_clock_from_tsc() argument
220 return cycles_2_ns(tsc); in native_sched_clock_from_tsc()
363 u64 tsc, t1, t2, delta; in pit_calibrate_tsc() local
393 tsc = t1 = t2 = get_cycles(); in pit_calibrate_tsc()
400 delta = t2 - tsc; in pit_calibrate_tsc()
401 tsc = t2; in pit_calibrate_tsc()
472 u64 tsc = 0, prev_tsc = 0; in pit_expect_msb() local
477 prev_tsc = tsc; in pit_expect_msb()
478 tsc = get_cycles(); in pit_expect_msb()
481 *tscp = tsc; in pit_expect_msb()
[all …]
DMakefile58 obj-y += tsc.o tsc_msr.o io_delay.o rtc.o
/arch/s390/include/asm/
Dstp.h15 unsigned int tsc : 1; /* Timing status change */ member
/arch/x86/include/uapi/asm/
Dmce.h15 __u64 tsc; /* cpu time stamp counter */ member
Dkvm_para.h59 __u64 tsc; member
/arch/x86/kernel/apic/
Dapic.c476 u64 tsc; in lapic_next_deadline() local
478 tsc = rdtsc(); in lapic_next_deadline()
479 wrmsrl(MSR_IA32_TSC_DEADLINE, tsc + (((u64) delta) * TSC_DIVISOR)); in lapic_next_deadline()
730 unsigned long long tsc = 0; in lapic_cal_handler() local
735 tsc = rdtsc(); in lapic_cal_handler()
740 lapic_cal_tsc1 = tsc; in lapic_cal_handler()
747 lapic_cal_tsc2 = tsc; in lapic_cal_handler()
1368 unsigned long long tsc = 0, ntsc; in apic_pending_intr_clear() local
1373 tsc = rdtsc(); in apic_pending_intr_clear()
1407 max_loops = (cpu_khz << 10) - (ntsc - tsc); in apic_pending_intr_clear()
/arch/x86/kernel/cpu/mcheck/
Dmce-apei.c58 m.tsc = rdtsc(); in apei_mce_report_mem_error()
Dmce.c251 pr_emerg(HW_ERR "TSC %llx ", m->tsc); in __print_mce()
692 m.tsc = rdtsc(); in machine_check_poll()
1215 m.tsc = rdtsc(); in do_machine_check()
/arch/arm/boot/dts/
Dlpc32xx.dtsi445 tsc: tsc@40048000 { label
446 compatible = "nxp,lpc3220-tsc";
Dlpc3250-phy3250.dts212 &tsc {
Dmmp2-brownstone.dts39 maxim,tsc-irq = <0>;
Dimx6ul-geam.dts237 &tsc {
249 &tsc {
Dimx6ul.dtsi331 tsc: tsc@02040000 { label
332 compatible = "fsl,imx6ul-tsc";
338 clock-names = "tsc", "adc";
Datlas6.dtsi356 tsc@b0110000 {
357 compatible = "sirf,prima2-tsc";
Dprima2.dtsi370 tsc@b0110000 {
371 compatible = "sirf,prima2-tsc";
Dimx6ul-14x14-evk.dts197 &tsc {
Dimx6ul-opos6uldev.dts221 &tsc {
Dam437x-cm-t43.dts396 tsc {
/arch/x86/events/
Dmsr.c99 PMU_EVENT_ATTR_STRING(tsc, evattr_tsc, "event=0x00");
/arch/x86/kvm/
Dhyperv.c408 u64 tsc; in get_time_ref_counter() local
418 tsc = kvm_read_l1_tsc(vcpu, rdtsc()); in get_time_ref_counter()
419 return mul_u64_u64_shr(tsc, hv->tsc_ref.tsc_scale, 64) in get_time_ref_counter()
Dx86.c1504 u64 tsc = pvclock_scale_delta(kernel_ns-vcpu->arch.this_tsc_nsec, in compute_guest_tsc() local
1507 tsc += vcpu->arch.this_tsc_write; in compute_guest_tsc()
1508 return tsc; in compute_guest_tsc()
1555 static inline u64 __scale_tsc(u64 ratio, u64 tsc) in __scale_tsc() argument
1557 return mul_u64_u64_shr(tsc, ratio, kvm_tsc_scaling_ratio_frac_bits); in __scale_tsc()
1560 u64 kvm_scale_tsc(struct kvm_vcpu *vcpu, u64 tsc) in kvm_scale_tsc() argument
1562 u64 _tsc = tsc; in kvm_scale_tsc()
1566 _tsc = __scale_tsc(ratio, tsc); in kvm_scale_tsc()
1574 u64 tsc; in kvm_compute_tsc_offset() local
1576 tsc = kvm_scale_tsc(vcpu, rdtsc()); in kvm_compute_tsc_offset()
[all …]

12