Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cpc_write_ffh

Proto:int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val)

Type:int

Parameter:

TypeParameterName
intcpunum
struct cpc_reg *reg
u64val
37  err = rdmsrl_safe_on_cpu(cpunum, address, & rd_val)
38  If Not err Then
39  mask = GENMASK_ULL(bit_offset + bit_width - 1, bit_offset)
42  val <<= bit_offset
43  val &= mask
44  rd_val &= ~mask
45  rd_val |= val
46  err = wrmsrl_safe_on_cpu(cpunum, address, rd_val)
48  Return err