lkml.org 
[lkml]   [2011]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] x86: page: get_order() optimization
On 03/28/2011 12:33 PM, Maksym Planeta wrote:
>
> Here is disassembly of patched get_order() with "inline" from
> "kernel/kexec.c":
>
> a6c: 48 8b 5d c8 mov -0x38(%rbp),%rbx
> a70: e8 0b fd ff ff callq 780 <get_order.clone.7>
>
> 0000000000000780 <get_order.clone.7>:
> 780: 55 push %rbp
> 781: b8 01 00 00 00 mov $0x1,%eax
> 786: 48 89 e5 mov %rsp,%rbp
> 789: c9 leaveq
> 78a: c3 retq
>
> My version of gcc is gcc (Debian 4.5.2-4) 4.5.2, probably I should
> upgrade my gcc version for better inline expansions.
>

With what options?

-hpa


\
 
 \ /
  Last update: 2011-03-28 21:47    [W:0.060 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site