函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\aperfmperf.c Create Date:2022-07-27 08:56:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:arch_freq_prepare_all

函数原型:void arch_freq_prepare_all(void)

返回类型:void

参数:

98  now等于ktime_get()
99  bool wait = false
102  如果非TSC clocks / usec, not used here 则返回
105  如果非boot_cpu_has(P-State hardware coordination feedback capability (APERF/MPERF MSRs) )则返回
108  遍历在线CPU(cpu)
109  如果非housekeeping_cpu(cpu, HK_FLAG_MISC)则继续下一循环
111  如果非aperfmperf_snapshot_cpu(cpu, now, false)则wait = true
115  如果waitmsleep(APERFMPERF_REFRESH_DELAY_MS)