函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:arch_freq_get_on_cpu

函数原型:unsigned int arch_freq_get_on_cpu(int cpu)

返回类型:unsigned int

参数:

类型参数名称
intcpu
121  如果非TSC clocks / usec, not used here 则返回:0
124  如果非boot_cpu_has(P-State hardware coordination feedback capability (APERF/MPERF MSRs) )则返回:0
127  如果非housekeeping_cpu(cpu, HK_FLAG_MISC)则返回:0
130  如果aperfmperf_snapshot_cpu(cpu, ktime_get(), true)则返回:per_cpu(khz, cpu)
133  msleep(APERFMPERF_REFRESH_DELAY_MS)
134  smp_call_function_single(cpu, aperfmperf_snapshot_khz()* On the current CPU, snapshot APERF, MPERF, and jiffies* unless we already did it within 10ms* calculate kHz, save snapshot, NULL, 1)
136  返回:per_cpu(khz, cpu)