]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] get_wchan(): remove uses of mfinfo[64]
authorFranck Bui-Huu <vagabon.xyz@gmail.com>
Fri, 18 Aug 2006 14:18:09 +0000 (16:18 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 27 Sep 2006 12:37:58 +0000 (13:37 +0100)
commite2c1da93c805a027155f27d7417140ba3475921f
tree3bd1df9b9c8c88f78833801094f6790ea7875717
parent5b1718ab921152eb496a44e2fbe7960c13441a0e
[MIPS] get_wchan(): remove uses of mfinfo[64]

This array was used to 'cache' some frame info about scheduler
functions to speed up get_wchan(). This array was 1Ko size and
was only used when CONFIG_KALLSYMS was set but declared for all
configs.

Rather than make the array statement conditional, this patches
removes this array and its uses. Indeed the common case doesn't
seem to use this array and get_wchan() is not a critical path
anyways.

It results in a smaller bss and a smaller/cleaner code:

   text    data     bss     dec     hex filename
2543808  254148  139296 2937252  2cd1a4 vmlinux-new-get-wchan
2544080  254148  143392 2941620  2ce2b4 vmlinux~old

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/process.c