Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:intel_epb_restore

Proto:static void intel_epb_restore(void)

Type:void

Parameter:Nothing

77  val = Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(DOC: overview* The Performance and Energy Bias Hint (EPB) allows software to specify its* preference with respect to the power-performance tradeoffs present in the* processor)
80  rdmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb)
81  If val Then
82  val &= EPB_MASK
83  Else
91  val = epb & EPB_MASK
94  pr_warn_once("ENERGY_PERF_BIAS: Set to 'normal', was 'performance'\n")
97  wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, (epb & ~EPB_MASK) | val)
Caller
NameDescribe
intel_epb_online