Lines Matching refs:cyc2ns
59 struct cyc2ns { struct
65 static DEFINE_PER_CPU_ALIGNED(struct cyc2ns, cyc2ns); argument
78 seq = this_cpu_read(cyc2ns.seq.seqcount.sequence); in __cyc2ns_read()
81 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in __cyc2ns_read()
82 data->cyc2ns_mul = this_cpu_read(cyc2ns.data[idx].cyc2ns_mul); in __cyc2ns_read()
83 data->cyc2ns_shift = this_cpu_read(cyc2ns.data[idx].cyc2ns_shift); in __cyc2ns_read()
85 } while (unlikely(seq != this_cpu_read(cyc2ns.seq.seqcount.sequence))); in __cyc2ns_read()
149 struct cyc2ns *c2n; in __set_cyc2ns_scale()
175 c2n = per_cpu_ptr(&cyc2ns, cpu); in __set_cyc2ns_scale()
202 struct cyc2ns *c2n = this_cpu_ptr(&cyc2ns); in cyc2ns_init_boot_cpu()
216 struct cyc2ns *c2n = this_cpu_ptr(&cyc2ns); in cyc2ns_init_secondary_cpus()
222 c2n = per_cpu_ptr(&cyc2ns, cpu); in cyc2ns_init_secondary_cpus()
990 this_cpu_write(cyc2ns.data[0].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
991 this_cpu_write(cyc2ns.data[1].cyc2ns_offset, 0); in tsc_restore_sched_clock_state()
996 per_cpu(cyc2ns.data[0].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()
997 per_cpu(cyc2ns.data[1].cyc2ns_offset, cpu) = offset; in tsc_restore_sched_clock_state()