From: Eric Dumazet <[EMAIL PROTECTED]> Date: Tue, 17 Jan 2006 10:56:13 +0100
> x86_64 code before patch > > mov 1237577(%rip),%rax # ffffffff803e5990 <rt_cache_stat> > not %rax # part of per_cpu machinery > mov %gs:0x3c,%edx # get cpu number > movslq %edx,%rdx # extend 32 bits cpu number to 64 bits > mov (%rax,%rdx,8),%rax # get the pointer for this cpu > incl 0x38(%rax) > > x86_64 code after patch > > mov $per_cpu__rt_cache_stat,%rdx > mov %gs:0x48,%rax # get percpu data offset > incl 0x38(%rax,%rdx,1) Similar gains on sparc64 :-) > Signed-off-by: Eric Dumazet <[EMAIL PROTECTED]> I think I'll apply this, thanks a lot Eric. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html