Searched refs:cyc2ns_offset (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | tsc.c | 79 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 D | tsc.c | 80 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 D | timer.h | 32 u64 cyc2ns_offset; member
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | timer.h | 32 u64 cyc2ns_offset; member
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
H A D | vmware.c | 151 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 D | vmware.c | 152 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 D | core.c | 2513 offset = data.cyc2ns_offset + __sched_clock_offset; in arch_perf_update_userpage()
|
/kernel/linux/linux-6.6/arch/x86/events/ |
H A D | core.c | 2723 offset = data.cyc2ns_offset + __sched_clock_offset; in arch_perf_update_userpage()
|
Completed in 16 milliseconds