dect
/
linux-2.6
Archived
13
0
Fork 0

[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>
This commit is contained in:
Franck Bui-Huu 2006-08-03 09:29:18 +02:00 committed by Ralf Baechle
parent 87151ae39b
commit 6057a79876
1 changed files with 9 additions and 9 deletions

View File

@ -370,15 +370,15 @@ static int __init frame_info_init(void)
mfinfo[0].func = schedule;
schedule_frame = &mfinfo[0];
#endif
for (i = 0; i < ARRAY_SIZE(mfinfo) && mfinfo[i].func; i++) {
struct mips_frame_info *info = &mfinfo[i];
if (get_frame_info(info)) {
/* leaf or unknown */
if (info->func == schedule)
printk("Can't analyze prologue code at %p\n",
info->func);
}
}
for (i = 0; i < ARRAY_SIZE(mfinfo) && mfinfo[i].func; i++)
get_frame_info(mfinfo + i);
/*
* Without schedule() frame info, result given by
* thread_saved_pc() and get_wchan() are not reliable.
*/
if (schedule_frame->pc_offset < 0)
printk("Can't analyze schedule() prologue at %p\n", schedule);
mfinfo_num = i;
return 0;