Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755446Ab1C1TpW (ORCPT ); Mon, 28 Mar 2011 15:45:22 -0400 Received: from terminus.zytor.com ([198.137.202.10]:52592 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755431Ab1C1TpS (ORCPT ); Mon, 28 Mar 2011 15:45:18 -0400 Message-ID: <4D90E539.7060908@zytor.com> Date: Mon, 28 Mar 2011 12:44:57 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 MIME-Version: 1.0 To: Maksym Planeta CC: Ingo Molnar , mingo@redhat.com, kernel-janitors@vger.kernel.org, namhyung@gmail.com, linux-kernel@vger.kernel.org, Thomas Gleixner , Jan Beulich Subject: Re: [PATCH v2] x86: page: get_order() optimization References: <1301215556-8898-1-git-send-email-mcsim.planeta@gmail.com> <20110327113323.GA27825@elte.hu> <1301246136.2291.49.camel@debian> <20110328050844.GC26322@elte.hu> <1301340822.6302.90.camel@debian> In-Reply-To: <1301340822.6302.90.camel@debian> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 27 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 > > 0000000000000780 : > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/