Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
25006644
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看板
提交
25006644
编写于
1月 08, 2009
作者:
R
Robert Richter
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
powerpc/oprofile: fix whitespaces in op_model_cell.c
Signed-off-by:
N
Robert Richter
<
robert.richter@amd.com
>
上级
88382329
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
13 deletion
+11
-13
arch/powerpc/oprofile/op_model_cell.c
arch/powerpc/oprofile/op_model_cell.c
+11
-13
未找到文件。
arch/powerpc/oprofile/op_model_cell.c
浏览文件 @
25006644
...
...
@@ -355,13 +355,13 @@ static void set_pm_event(u32 ctr, int event, u32 unit_mask)
for
(
i
=
0
;
i
<
NUM_DEBUG_BUS_WORDS
;
i
++
)
{
if
(
bus_word
&
(
1
<<
i
))
{
pm_regs
.
debug_bus_control
|=
(
bus_type
<<
(
30
-
(
2
*
i
)));
(
bus_type
<<
(
30
-
(
2
*
i
)));
for
(
j
=
0
;
j
<
NUM_INPUT_BUS_WORDS
;
j
++
)
{
if
(
input_bus
[
j
]
==
0xff
)
{
input_bus
[
j
]
=
i
;
pm_regs
.
group_control
|=
(
i
<<
(
30
-
(
2
*
j
)));
(
i
<<
(
30
-
(
2
*
j
)));
break
;
}
...
...
@@ -503,7 +503,7 @@ static void cell_virtual_cntr(unsigned long data)
cbe_disable_pm_interrupts
(
cpu
);
for
(
i
=
0
;
i
<
num_counters
;
i
++
)
{
per_cpu
(
pmc_values
,
cpu
+
prev_hdw_thread
)[
i
]
=
cbe_read_ctr
(
cpu
,
i
);
=
cbe_read_ctr
(
cpu
,
i
);
if
(
per_cpu
(
pmc_values
,
cpu
+
next_hdw_thread
)[
i
]
==
0xFFFFFFFF
)
...
...
@@ -639,7 +639,7 @@ static void spu_evnt_swap(unsigned long data)
cbe_disable_pm_interrupts
(
cpu
);
spu_pm_cnt
[
cur_phys_spu
]
=
cbe_read_ctr
(
cpu
,
0
);
=
cbe_read_ctr
(
cpu
,
0
);
/* restore previous count for the next spu to sample */
/* NOTE, hardware issue, counter will not start if the
...
...
@@ -658,9 +658,8 @@ static void spu_evnt_swap(unsigned long data)
*/
ret
=
pm_rtas_activate_signals
(
cbe_cpu_to_node
(
cpu
),
3
);
if
(
ret
)
printk
(
KERN_ERR
"%s: pm_rtas_activate_signals failed, SPU event swap
\n
"
,
__func__
);
printk
(
KERN_ERR
"%s: pm_rtas_activate_signals failed, "
"SPU event swap
\n
"
,
__func__
);
/* clear the trace buffer, don't want to take PC for
* previous SPU*/
...
...
@@ -1316,7 +1315,7 @@ static int cell_global_start_spu_cycles(struct op_counter_config *ctr)
/* start profiling */
ret
=
rtas_call
(
spu_rtas_token
,
3
,
1
,
NULL
,
subfunc
,
cbe_cpu_to_node
(
cpu
),
lfsr_value
);
cbe_cpu_to_node
(
cpu
),
lfsr_value
);
if
(
unlikely
(
ret
!=
0
))
{
printk
(
KERN_ERR
...
...
@@ -1397,7 +1396,7 @@ static int cell_global_start_spu_events(struct op_counter_config *ctr)
*/
start_spu_event_swap
();
start_spu_profiling_events
();
oprofile_running
=
1
;
oprofile_running
=
1
;
smp_wmb
();
return
rtn
;
...
...
@@ -1422,8 +1421,7 @@ static int cell_global_start_ppu(struct op_counter_config *ctr)
if
(
ctr_enabled
&
(
1
<<
i
))
{
cbe_write_ctr
(
cpu
,
i
,
reset_value
[
i
]);
enable_ctr
(
cpu
,
i
,
pm_regs
.
pm07_cntrl
);
interrupt_mask
|=
CBE_PM_CTR_OVERFLOW_INTR
(
i
);
interrupt_mask
|=
CBE_PM_CTR_OVERFLOW_INTR
(
i
);
}
else
{
/* Disable counter */
cbe_write_pm07_control
(
cpu
,
i
,
0
);
...
...
@@ -1517,13 +1515,13 @@ static void cell_handle_interrupt_spu(struct pt_regs *regs,
trace_entry
=
0xfedcba
;
last_trace_buffer
=
0xdeadbeaf
;
if
((
oprofile_running
==
1
)
&&
(
interrupt_mask
!=
0
))
{
if
((
oprofile_running
==
1
)
&&
(
interrupt_mask
!=
0
))
{
/* disable writes to trace buff */
cbe_write_pm
(
cpu
,
pm_interval
,
0
);
/* only have one perf cntr being used, cntr 0 */
if
((
interrupt_mask
&
CBE_PM_CTR_OVERFLOW_INTR
(
0
))
&&
ctr
[
0
].
enabled
)
&&
ctr
[
0
].
enabled
)
/* The SPU PC values will be read
* from the trace buffer, reset counter
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录