Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d7fa2589
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d7fa2589
编写于
6月 27, 2006
作者:
T
Thomas Renninger
提交者:
Len Brown
6月 27, 2006
浏览文件
操作
浏览文件
下载
差异文件
Pull bugzilla-5737 into release branch
上级
6468463a
46f18e3a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
8 deletion
+22
-8
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+7
-1
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+7
-1
drivers/acpi/processor_perflib.c
drivers/acpi/processor_perflib.c
+4
-4
include/linux/cpufreq.h
include/linux/cpufreq.h
+4
-2
未找到文件。
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
浏览文件 @
d7fa2589
...
...
@@ -418,8 +418,14 @@ acpi_cpufreq_cpu_init (
goto
err_free
;
perf
=
data
->
acpi_data
;
policy
->
cpus
=
perf
->
shared_cpu_map
;
policy
->
shared_type
=
perf
->
shared_type
;
/*
* Will let policy->cpus know about dependency only when software
* coordination is required.
*/
if
(
policy
->
shared_type
==
CPUFREQ_SHARED_TYPE_ALL
||
policy
->
shared_type
==
CPUFREQ_SHARED_TYPE_ANY
)
policy
->
cpus
=
perf
->
shared_cpu_map
;
if
(
cpu_has
(
c
,
X86_FEATURE_CONSTANT_TSC
))
{
acpi_cpufreq_driver
.
flags
|=
CPUFREQ_CONST_LOOPS
;
...
...
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
浏览文件 @
d7fa2589
...
...
@@ -399,8 +399,14 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy)
dprintk
(
PFX
"obtaining ACPI data failed
\n
"
);
return
-
EIO
;
}
policy
->
cpus
=
p
->
shared_cpu_map
;
policy
->
shared_type
=
p
->
shared_type
;
/*
* Will let policy->cpus know about dependency only when software
* coordination is required.
*/
if
(
policy
->
shared_type
==
CPUFREQ_SHARED_TYPE_ALL
||
policy
->
shared_type
==
CPUFREQ_SHARED_TYPE_ANY
)
policy
->
cpus
=
p
->
shared_cpu_map
;
/* verify the acpi_data */
if
(
p
->
state_count
<=
1
)
{
...
...
drivers/acpi/processor_perflib.c
浏览文件 @
d7fa2589
...
...
@@ -691,12 +691,12 @@ int acpi_processor_preregister_performance(
/* Validate the Domain info */
count_target
=
pdomain
->
num_processors
;
count
=
1
;
if
(
pdomain
->
coord_type
==
DOMAIN_COORD_TYPE_SW_ALL
||
pdomain
->
coord_type
==
DOMAIN_COORD_TYPE_HW_ALL
)
{
if
(
pdomain
->
coord_type
==
DOMAIN_COORD_TYPE_SW_ALL
)
pr
->
performance
->
shared_type
=
CPUFREQ_SHARED_TYPE_ALL
;
}
else
if
(
pdomain
->
coord_type
==
DOMAIN_COORD_TYPE_SW_ANY
)
{
else
if
(
pdomain
->
coord_type
==
DOMAIN_COORD_TYPE_HW_ALL
)
pr
->
performance
->
shared_type
=
CPUFREQ_SHARED_TYPE_HW
;
else
if
(
pdomain
->
coord_type
==
DOMAIN_COORD_TYPE_SW_ANY
)
pr
->
performance
->
shared_type
=
CPUFREQ_SHARED_TYPE_ANY
;
}
for_each_possible_cpu
(
j
)
{
if
(
i
==
j
)
...
...
include/linux/cpufreq.h
浏览文件 @
d7fa2589
...
...
@@ -100,8 +100,10 @@ struct cpufreq_policy {
#define CPUFREQ_INCOMPATIBLE (1)
#define CPUFREQ_NOTIFY (2)
#define CPUFREQ_SHARED_TYPE_ALL (0)
/* All dependent CPUs should set freq */
#define CPUFREQ_SHARED_TYPE_ANY (1)
/* Freq can be set from any dependent CPU */
#define CPUFREQ_SHARED_TYPE_NONE (0)
/* None */
#define CPUFREQ_SHARED_TYPE_HW (1)
/* HW does needed coordination */
#define CPUFREQ_SHARED_TYPE_ALL (2)
/* All dependent CPUs should set freq */
#define CPUFREQ_SHARED_TYPE_ANY (3)
/* Freq can be set from any dependent CPU*/
/******************** cpufreq transition notifiers *******************/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录