Home
last modified time | relevance | path

Searched refs:cyc2ns_offset (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dtsc.c79 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in cyc2ns_read_begin()
122 ns = data.cyc2ns_offset; in cycles_2_ns()
157 data.cyc2ns_offset = ns_now - in __set_cyc2ns_scale()
932 * states. To cope up with this, recompute the cyc2ns_offset for each cpu so
953 this_cpu_write(cyc2ns.data[0].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
954 this_cpu_write(cyc2ns.data[1].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
959 per_cpu(cyc2ns.data[0].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()
960 per_cpu(cyc2ns.data[1].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dtsc.c80 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in __cyc2ns_read()
129 ns = data.cyc2ns_offset; in __cycles_2_ns()
171 data.cyc2ns_offset = ns_now - in __set_cyc2ns_scale()
968 * states. To cope up with this, recompute the cyc2ns_offset for each cpu so
989 this_cpu_write(cyc2ns.data[0].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
990 this_cpu_write(cyc2ns.data[1].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
995 per_cpu(cyc2ns.data[0].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()
996 per_cpu(cyc2ns.data[1].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dtimer.h32 u64 cyc2ns_offset; member
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dtimer.h32 u64 cyc2ns_offset; member
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
H A Dvmware.c151 ns -= vmware_cyc2ns.cyc2ns_offset; in vmware_sched_clock()
162 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
165 pr_info("using clock offset of %llu ns\n", d->cyc2ns_offset); in vmware_cyc2ns_setup()
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/
H A Dvmware.c152 ns -= vmware_cyc2ns.cyc2ns_offset; in vmware_sched_clock()
163 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
166 pr_info("using clock offset of %llu ns\n", d->cyc2ns_offset); in vmware_cyc2ns_setup()
/kernel/linux/linux-5.10/arch/x86/events/
H A Dcore.c2513 offset = data.cyc2ns_offset + __sched_clock_offset; in arch_perf_update_userpage()
/kernel/linux/linux-6.6/arch/x86/events/
H A Dcore.c2723 offset = data.cyc2ns_offset + __sched_clock_offset; in arch_perf_update_userpage()

Completed in 16 milliseconds