Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
c4236282
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c4236282
编写于
5月 28, 2010
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
intel_idle: delete substates DEBUG modparam
it isn't useful anymore Signed-off-by:
N
Len Brown
<
len.brown@intel.com
>
上级
26717172
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
13 deletion
+7
-13
drivers/idle/intel_idle.c
drivers/idle/intel_idle.c
+7
-13
未找到文件。
drivers/idle/intel_idle.c
浏览文件 @
c4236282
...
...
@@ -79,7 +79,7 @@ static struct cpuidle_driver intel_idle_driver = {
static
int
max_cstate
=
MWAIT_MAX_NUM_CSTATES
-
1
;
static
int
power_policy
=
7
;
/* 0 = max perf; 15 = max powersave */
static
unsigned
int
substates
;
static
unsigned
int
mwait_
substates
;
static
int
(
*
choose_substate
)(
int
);
/* Reliable LAPIC Timer States, bit 1 for C1 etc. */
...
...
@@ -184,7 +184,8 @@ static int choose_tunable_substate(int cstate)
power_policy
&=
0xF
;
/* valid range: 0-15 */
cstate
&=
7
;
/* valid range: 0-7 */
num_substates
=
(
substates
>>
((
cstate
)
*
4
))
&
MWAIT_SUBSTATE_MASK
;
num_substates
=
(
mwait_substates
>>
((
cstate
)
*
4
))
&
MWAIT_SUBSTATE_MASK
;
if
(
num_substates
<=
1
)
return
0
;
...
...
@@ -259,7 +260,7 @@ static int intel_idle(struct cpuidle_device *dev, struct cpuidle_state *state)
*/
static
int
intel_idle_probe
(
void
)
{
unsigned
int
eax
,
ebx
,
ecx
,
edx
;
unsigned
int
eax
,
ebx
,
ecx
;
if
(
max_cstate
==
0
)
{
pr_debug
(
PREFIX
"disabled
\n
"
);
...
...
@@ -275,17 +276,13 @@ static int intel_idle_probe(void)
if
(
boot_cpu_data
.
cpuid_level
<
CPUID_MWAIT_LEAF
)
return
-
ENODEV
;
cpuid
(
CPUID_MWAIT_LEAF
,
&
eax
,
&
ebx
,
&
ecx
,
&
edx
);
cpuid
(
CPUID_MWAIT_LEAF
,
&
eax
,
&
ebx
,
&
ecx
,
&
mwait_substates
);
if
(
!
(
ecx
&
CPUID5_ECX_EXTENSIONS_SUPPORTED
)
||
!
(
ecx
&
CPUID5_ECX_INTERRUPT_BREAK
))
return
-
ENODEV
;
#ifdef DEBUG
if
(
substates
==
0
)
/* can over-ride via modparam */
#endif
substates
=
edx
;
pr_debug
(
PREFIX
"MWAIT substates: 0x%x
\n
"
,
substates
);
pr_debug
(
PREFIX
"MWAIT substates: 0x%x
\n
"
,
mwait_
substates
);
if
(
boot_cpu_has
(
X86_FEATURE_ARAT
))
/* Always Reliable APIC Timer */
lapic_timer_reliable_states
=
0xFFFFFFFF
;
...
...
@@ -376,7 +373,7 @@ static int intel_idle_cpuidle_devices_init(void)
}
/* does the state exist in CPUID.MWAIT? */
num_substates
=
(
substates
>>
((
cstate
)
*
4
))
num_substates
=
(
mwait_
substates
>>
((
cstate
)
*
4
))
&
MWAIT_SUBSTATE_MASK
;
if
(
num_substates
==
0
)
continue
;
...
...
@@ -452,9 +449,6 @@ module_exit(intel_idle_exit);
module_param
(
power_policy
,
int
,
0644
);
module_param
(
max_cstate
,
int
,
0444
);
#ifdef DEBUG
module_param
(
substates
,
int
,
0444
);
#endif
MODULE_AUTHOR
(
"Len Brown <len.brown@intel.com>"
);
MODULE_DESCRIPTION
(
"Cpuidle driver for Intel Hardware v"
INTEL_IDLE_VERSION
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录