Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tsc.c Create Date:2022-07-28 07:46:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Secondary CPUs do not run through tsc_init(), so set up* all the scale factors for all CPUs, assuming the same* speed as the bootup CPU.

Proto:static void __init cyc2ns_init_secondary_cpus(void)

Type:void

Parameter:Nothing

193  this_cpu = smp_processor_id()
194  c2n = this_cpu_ptr( & cyc2ns)
195  data = 0 + 2*16 = 32
197  for_each_possible_cpu(cpu)
198  If cpu != this_cpu Then
200  c2n = per_cpu_ptr( & cyc2ns, cpu)
201  0 + 2*16 = 32 [0] = data[0]
202  0 + 2*16 = 32 [1] = data[1]
Caller
NameDescribe
tsc_init