函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:intel_epb_restore

函数原型:static void intel_epb_restore(void)

返回类型:void

参数:

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  如果val
82  val与等于EPB_MASK
83  否则
91  val等于epb按位与EPB_MASK
92  如果val恒等于ENERGY_PERF_BIAS_PERFORMANCE
94  pr_warn_once("ENERGY_PERF_BIAS: Set to 'normal', was 'performance'\n")
97  wrmsrl(MSR_IA32_ENERGY_PERF_BIAS, (epb & ~EPB_MASK) | val)
调用者
名称描述
intel_epb_online