Re: [RFC/PATCH] reduce load time for modules with lots of relocs

2007-11-06 Thread Nathan Lynch
Medve Emilian wrote: > Would it be possible to do the sort "in place" (without the extra > buffer)? I mean would that upset any other part of the kernel? I suspect so. Sounds like you've got the good testcase, maybe you should try it and see. :) ___ Li

RE: [RFC/PATCH] reduce load time for modules with lots of relocs

2007-11-06 Thread Medve Emilian
Hello Nathan, Would it be possible to do the sort "in place" (without the extra buffer)? I mean would that upset any other part of the kernel? Thanks, Emil. > -Original Message- > From: Nathan Lynch [mailto:[EMAIL PROTECTED] > Sent: Monday, November 05, 2007 8:34 PM > To: Medve Emili

Re: [RFC/PATCH] reduce load time for modules with lots of relocs

2007-11-05 Thread Stephen Rothwell
On Mon, 5 Nov 2007 20:33:55 -0600 Nathan Lynch <[EMAIL PROTECTED]> wrote: > > static unsigned int count_relocs(const Elf32_Rela *rela, unsigned int num) > { > - unsigned int i, j, ret = 0; > + unsigned int i, sorted_count = 0; > + Elf32_Word last_info; > + Elf32_Sword last_addend;