Commit 6057a798 authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ralf Baechle

[MIPS] Make frame_info_init() more readable.

Signed-off-by: default avatarFranck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 87151ae3
...@@ -370,15 +370,15 @@ static int __init frame_info_init(void) ...@@ -370,15 +370,15 @@ static int __init frame_info_init(void)
mfinfo[0].func = schedule; mfinfo[0].func = schedule;
schedule_frame = &mfinfo[0]; schedule_frame = &mfinfo[0];
#endif #endif
for (i = 0; i < ARRAY_SIZE(mfinfo) && mfinfo[i].func; i++) { for (i = 0; i < ARRAY_SIZE(mfinfo) && mfinfo[i].func; i++)
struct mips_frame_info *info = &mfinfo[i]; get_frame_info(mfinfo + i);
if (get_frame_info(info)) {
/* leaf or unknown */ /*
if (info->func == schedule) * Without schedule() frame info, result given by
printk("Can't analyze prologue code at %p\n", * thread_saved_pc() and get_wchan() are not reliable.
info->func); */
} if (schedule_frame->pc_offset < 0)
} printk("Can't analyze schedule() prologue at %p\n", schedule);
mfinfo_num = i; mfinfo_num = i;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment