Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
bfdc708d
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bfdc708d
编写于
10月 20, 2005
作者:
D
Dave Jones
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CPUFREQ] kzalloc conversions for i386 drivers.
Signed-off-by:
N
Dave Jones
<
davej@redhat.com
>
上级
b9111b7b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
15 deletion
+6
-15
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+1
-2
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
+3
-9
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
+1
-2
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+1
-2
未找到文件。
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
浏览文件 @
bfdc708d
...
...
@@ -376,10 +376,9 @@ acpi_cpufreq_cpu_init (
arg0
.
buffer
.
length
=
12
;
arg0
.
buffer
.
pointer
=
(
u8
*
)
arg0_buf
;
data
=
k
m
alloc
(
sizeof
(
struct
cpufreq_acpi_io
),
GFP_KERNEL
);
data
=
k
z
alloc
(
sizeof
(
struct
cpufreq_acpi_io
),
GFP_KERNEL
);
if
(
!
data
)
return
(
-
ENOMEM
);
memset
(
data
,
0
,
sizeof
(
struct
cpufreq_acpi_io
));
acpi_io_data
[
cpu
]
=
data
;
...
...
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
浏览文件 @
bfdc708d
...
...
@@ -171,10 +171,9 @@ static int get_ranges (unsigned char *pst)
unsigned
int
speed
;
u8
fid
,
vid
;
powernow_table
=
k
m
alloc
((
sizeof
(
struct
cpufreq_frequency_table
)
*
(
number_scales
+
1
)),
GFP_KERNEL
);
powernow_table
=
k
z
alloc
((
sizeof
(
struct
cpufreq_frequency_table
)
*
(
number_scales
+
1
)),
GFP_KERNEL
);
if
(
!
powernow_table
)
return
-
ENOMEM
;
memset
(
powernow_table
,
0
,
(
sizeof
(
struct
cpufreq_frequency_table
)
*
(
number_scales
+
1
)));
for
(
j
=
0
;
j
<
number_scales
;
j
++
)
{
fid
=
*
pst
++
;
...
...
@@ -305,16 +304,13 @@ static int powernow_acpi_init(void)
goto
err0
;
}
acpi_processor_perf
=
k
m
alloc
(
sizeof
(
struct
acpi_processor_performance
),
acpi_processor_perf
=
k
z
alloc
(
sizeof
(
struct
acpi_processor_performance
),
GFP_KERNEL
);
if
(
!
acpi_processor_perf
)
{
retval
=
-
ENOMEM
;
goto
err0
;
}
memset
(
acpi_processor_perf
,
0
,
sizeof
(
struct
acpi_processor_performance
));
if
(
acpi_processor_register_performance
(
acpi_processor_perf
,
0
))
{
retval
=
-
EIO
;
goto
err1
;
...
...
@@ -337,14 +333,12 @@ static int powernow_acpi_init(void)
goto
err2
;
}
powernow_table
=
k
m
alloc
((
number_scales
+
1
)
*
(
sizeof
(
struct
cpufreq_frequency_table
)),
GFP_KERNEL
);
powernow_table
=
k
z
alloc
((
number_scales
+
1
)
*
(
sizeof
(
struct
cpufreq_frequency_table
)),
GFP_KERNEL
);
if
(
!
powernow_table
)
{
retval
=
-
ENOMEM
;
goto
err2
;
}
memset
(
powernow_table
,
0
,
((
number_scales
+
1
)
*
sizeof
(
struct
cpufreq_frequency_table
)));
pc
.
val
=
(
unsigned
long
)
acpi_processor_perf
->
states
[
0
].
control
;
for
(
i
=
0
;
i
<
number_scales
;
i
++
)
{
u8
fid
,
vid
;
...
...
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
浏览文件 @
bfdc708d
...
...
@@ -976,12 +976,11 @@ static int __init powernowk8_cpu_init(struct cpufreq_policy *pol)
if
(
!
check_supported_cpu
(
pol
->
cpu
))
return
-
ENODEV
;
data
=
k
m
alloc
(
sizeof
(
struct
powernow_k8_data
),
GFP_KERNEL
);
data
=
k
z
alloc
(
sizeof
(
struct
powernow_k8_data
),
GFP_KERNEL
);
if
(
!
data
)
{
printk
(
KERN_ERR
PFX
"unable to alloc powernow_k8_data"
);
return
-
ENOMEM
;
}
memset
(
data
,
0
,
sizeof
(
struct
powernow_k8_data
));
data
->
cpu
=
pol
->
cpu
;
...
...
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
浏览文件 @
bfdc708d
...
...
@@ -422,12 +422,11 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy)
}
}
centrino_model
[
cpu
]
=
k
m
alloc
(
sizeof
(
struct
cpu_model
),
GFP_KERNEL
);
centrino_model
[
cpu
]
=
k
z
alloc
(
sizeof
(
struct
cpu_model
),
GFP_KERNEL
);
if
(
!
centrino_model
[
cpu
])
{
result
=
-
ENOMEM
;
goto
err_unreg
;
}
memset
(
centrino_model
[
cpu
],
0
,
sizeof
(
struct
cpu_model
));
centrino_model
[
cpu
]
->
model_name
=
NULL
;
centrino_model
[
cpu
]
->
max_freq
=
p
.
states
[
0
].
core_frequency
*
1000
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录