Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
1179c2ae
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
提交
1179c2ae
编写于
3月 05, 2018
作者:
R
Rafael J. Wysocki
浏览文件
操作
浏览文件
下载
差异文件
Merge cpufreq fixes from v4.16-rc4.
上级
0f555518
5c8b2623
0373ca74
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
8 deletion
+22
-8
drivers/cpufreq/Kconfig.arm
drivers/cpufreq/Kconfig.arm
+3
-3
drivers/cpufreq/s3c24xx-cpufreq.c
drivers/cpufreq/s3c24xx-cpufreq.c
+7
-1
drivers/cpufreq/scpi-cpufreq.c
drivers/cpufreq/scpi-cpufreq.c
+12
-4
未找到文件。
drivers/cpufreq/Kconfig.arm
浏览文件 @
1179c2ae
...
...
@@ -44,10 +44,10 @@ config ARM_DT_BL_CPUFREQ
config ARM_SCPI_CPUFREQ
tristate "SCPI based CPUfreq driver"
depends on ARM_
BIG_LITTLE_CPUFREQ && ARM_
SCPI_PROTOCOL && COMMON_CLK_SCPI
depends on ARM_SCPI_PROTOCOL && COMMON_CLK_SCPI
help
This adds the CPUfreq driver support for ARM
big.LITTLE platforms
using SCPI
protocol for CPU power management.
This adds the CPUfreq driver support for ARM
platforms using SCPI
protocol for CPU power management.
This driver uses SCPI Message Protocol driver to interact with the
firmware providing the CPU DVFS functionality.
...
...
drivers/cpufreq/s3c24xx-cpufreq.c
浏览文件 @
1179c2ae
...
...
@@ -351,7 +351,13 @@ struct clk *s3c_cpufreq_clk_get(struct device *dev, const char *name)
static
int
s3c_cpufreq_init
(
struct
cpufreq_policy
*
policy
)
{
policy
->
clk
=
clk_arm
;
return
cpufreq_generic_init
(
policy
,
ftab
,
cpu_cur
.
info
->
latency
);
policy
->
cpuinfo
.
transition_latency
=
cpu_cur
.
info
->
latency
;
if
(
ftab
)
return
cpufreq_table_validate_and_show
(
policy
,
ftab
);
return
0
;
}
static
int
__init
s3c_cpufreq_initclks
(
void
)
...
...
drivers/cpufreq/scpi-cpufreq.c
浏览文件 @
1179c2ae
...
...
@@ -51,15 +51,23 @@ static unsigned int scpi_cpufreq_get_rate(unsigned int cpu)
static
int
scpi_cpufreq_set_target
(
struct
cpufreq_policy
*
policy
,
unsigned
int
index
)
{
unsigned
long
freq
=
policy
->
freq_table
[
index
].
frequency
;
struct
scpi_data
*
priv
=
policy
->
driver_data
;
u64
rate
=
policy
->
freq_table
[
index
].
frequency
*
1000
;
u64
rate
=
freq
*
1000
;
int
ret
;
ret
=
clk_set_rate
(
priv
->
clk
,
rate
);
if
(
!
ret
&&
(
clk_get_rate
(
priv
->
clk
)
!=
rate
))
ret
=
-
EIO
;
return
ret
;
if
(
ret
)
return
ret
;
if
(
clk_get_rate
(
priv
->
clk
)
!=
rate
)
return
-
EIO
;
arch_set_freq_scale
(
policy
->
related_cpus
,
freq
,
policy
->
cpuinfo
.
max_freq
);
return
0
;
}
static
int
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录