Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:arch_freq_prepare_all

Proto:void arch_freq_prepare_all(void)

Type:void

Parameter:Nothing

98  now = ktime_get()
99  bool wait = false
102  If Not TSC clocks / usec, not used here Then Return
105  If Not boot_cpu_has(P-State hardware coordination feedback capability (APERF/MPERF MSRs) ) Then Return
108  for_each_online_cpu(cpu)
109  If Not housekeeping_cpu(cpu, HK_FLAG_MISC) Then Continue
111  If Not aperfmperf_snapshot_cpu(cpu, now, false) Then wait = true
115  If wait Then msleep(APERFMPERF_REFRESH_DELAY_MS)