Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35998
b: refs/heads/master
c: 6057a79
h: refs/heads/master
v: v3
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed Sep 27, 2006
1 parent fe05b95 commit f6bce54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 87151ae39bf5556abe83d69af0be9580c32c501b
refs/heads/master: 6057a7987608941a203f40f8b53513af433d8d2f
18 changes: 9 additions & 9 deletions trunk/arch/mips/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f6bce54

Please sign in to comment.