diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2006-10-13 07:37:35 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-10-19 12:55:12 -0400 |
commit | 55b7428303d390c53d3a1bc587de8592ce65900e (patch) | |
tree | d868fceac63f285eddf8a46036ec5d2c7dfb79af | |
parent | ce9e3d9953c8cb67001719b5516da2928e956be4 (diff) |
[MIPS] Use kallsyms_lookup_size_offset() instead of kallsyms_lookup()
This new routine doesn't lookup for symbol names. So we needn't
to pass any char buffers or pointer since we don't care about
names.
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/process.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 9f307eb1a31e..ec8209f3a0c6 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c | |||
@@ -358,10 +358,8 @@ static int __init frame_info_init(void) | |||
358 | unsigned long size = 0; | 358 | unsigned long size = 0; |
359 | #ifdef CONFIG_KALLSYMS | 359 | #ifdef CONFIG_KALLSYMS |
360 | unsigned long ofs; | 360 | unsigned long ofs; |
361 | char *modname; | ||
362 | char namebuf[KSYM_NAME_LEN + 1]; | ||
363 | 361 | ||
364 | kallsyms_lookup((unsigned long)schedule, &size, &ofs, &modname, namebuf); | 362 | kallsyms_lookup_size_offset((unsigned long)schedule, &size, &ofs); |
365 | #endif | 363 | #endif |
366 | schedule_mfi.func = schedule; | 364 | schedule_mfi.func = schedule; |
367 | schedule_mfi.func_size = size; | 365 | schedule_mfi.func_size = size; |
@@ -403,8 +401,6 @@ unsigned long unwind_stack(struct task_struct *task, unsigned long *sp, | |||
403 | { | 401 | { |
404 | unsigned long stack_page; | 402 | unsigned long stack_page; |
405 | struct mips_frame_info info; | 403 | struct mips_frame_info info; |
406 | char *modname; | ||
407 | char namebuf[KSYM_NAME_LEN + 1]; | ||
408 | unsigned long size, ofs; | 404 | unsigned long size, ofs; |
409 | int leaf; | 405 | int leaf; |
410 | extern void ret_from_irq(void); | 406 | extern void ret_from_irq(void); |
@@ -433,7 +429,7 @@ unsigned long unwind_stack(struct task_struct *task, unsigned long *sp, | |||
433 | } | 429 | } |
434 | return 0; | 430 | return 0; |
435 | } | 431 | } |
436 | if (!kallsyms_lookup(pc, &size, &ofs, &modname, namebuf)) | 432 | if (!kallsyms_lookup_size_offset(pc, &size, &ofs)) |
437 | return 0; | 433 | return 0; |
438 | /* | 434 | /* |
439 | * Return ra if an exception occured at the first instruction | 435 | * Return ra if an exception occured at the first instruction |