Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cpufreq.c Create Date:2022-07-28 09:44:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pufreq_add_update_util_hook - Populate the CPU's update_util_data pointer

Proto:void cpufreq_add_update_util_hook(int cpu, struct update_util_data *data, void (*func)(struct update_util_data *data, u64 time, unsigned int flags))

Type:void

Parameter:

TypeParameterName
intcpu
struct update_util_data *data
void (*func
36  If WARN_ON(!data || !func) Then Return
39  If WARN_ON(per_cpu(cpufreq_update_util_data, cpu)) Then Return
42  func = func
43  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(per_cpu(cpufreq_update_util_data, cpu), data)
Caller
NameDescribe
sugov_start