diff options
author | Franck Bui-Huu <vagabon.xyz@gmail.com> | 2006-08-03 03:29:18 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-09-27 08:37:27 -0400 |
commit | 6057a7987608941a203f40f8b53513af433d8d2f (patch) | |
tree | 1fa63ef112a4350c5bf00fc673aed44609c1ed21 | |
parent | 87151ae39bf5556abe83d69af0be9580c32c501b (diff) |
[MIPS] Make frame_info_init() more readable.
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/process.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 93d5432759db..da332d707ce5 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c | |||
@@ -370,15 +370,15 @@ static int __init frame_info_init(void) | |||
370 | mfinfo[0].func = schedule; | 370 | mfinfo[0].func = schedule; |
371 | schedule_frame = &mfinfo[0]; | 371 | schedule_frame = &mfinfo[0]; |
372 | #endif | 372 | #endif |
373 | for (i = 0; i < ARRAY_SIZE(mfinfo) && mfinfo[i].func; i++) { | 373 | for (i = 0; i < ARRAY_SIZE(mfinfo) && mfinfo[i].func; i++) |
374 | struct mips_frame_info *info = &mfinfo[i]; | 374 | get_frame_info(mfinfo + i); |
375 | if (get_frame_info(info)) { | 375 | |
376 | /* leaf or unknown */ | 376 | /* |
377 | if (info->func == schedule) | 377 | * Without schedule() frame info, result given by |
378 | printk("Can't analyze prologue code at %p\n", | 378 | * thread_saved_pc() and get_wchan() are not reliable. |
379 | info->func); | 379 | */ |
380 | } | 380 | if (schedule_frame->pc_offset < 0) |
381 | } | 381 | printk("Can't analyze schedule() prologue at %p\n", schedule); |
382 | 382 | ||
383 | mfinfo_num = i; | 383 | mfinfo_num = i; |
384 | return 0; | 384 | return 0; |