Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752155AbaAGNnq (ORCPT ); Tue, 7 Jan 2014 08:43:46 -0500 Received: from mail-pa0-f54.google.com ([209.85.220.54]:44499 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbaAGNng (ORCPT ); Tue, 7 Jan 2014 08:43:36 -0500 Message-ID: <52CC0468.1070004@gmail.com> Date: Tue, 07 Jan 2014 21:43:04 +0800 From: Jiang Liu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Will Deacon CC: Steven Rostedt , Catalin Marinas , Sandeepa Prabhu , AKASHI Takahiro , Marc Zyngier , Mark Rutland , Arnd Bergmann , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v7 6/7] arm64, jump label: optimize jump label implementation References: <1387725944-810-1-git-send-email-liuj97@gmail.com> <1387725944-810-7-git-send-email-liuj97@gmail.com> <20140106185139.GK1096@mudshark.cambridge.arm.com> In-Reply-To: <20140106185139.GK1096@mudshark.cambridge.arm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/07/2014 02:51 AM, Will Deacon wrote: > On Sun, Dec 22, 2013 at 03:25:42PM +0000, Jiang Liu wrote: >> Optimize jump label implementation for ARM64 by dynamically patching >> kernel text. > > Almost! > >> diff --git a/arch/arm64/include/asm/jump_label.h b/arch/arm64/include/asm/jump_label.h >> new file mode 100644 >> index 0000000..47cd130 >> --- /dev/null >> +++ b/arch/arm64/include/asm/jump_label.h >> @@ -0,0 +1,51 @@ >> +/* >> + * Copyright (C) 2013 Huawei Ltd. >> + * Author: Jiang Liu >> + * >> + * Based on arch/arm/include/asm/jump_label.h >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License version 2 as >> + * published by the Free Software Foundation. >> + * >> + * This program is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> + * GNU General Public License for more details. >> + * >> + * You should have received a copy of the GNU General Public License >> + * along with this program. If not, see . >> + */ >> +#ifndef _ASM_JUMP_LABEL_H >> +#define _ASM_JUMP_LABEL_H > > It's actually prefixed with double-underscore in our other headers. OK, will fix. > >> +#include >> + >> +#ifdef __KERNEL__ >> + >> +#define JUMP_LABEL_NOP_SIZE 4 > > I know you didn't like including asm/insn.h, but I don't see why that's such > a problem. Does it cause a circular dependency or something? Not a big deal, just saving some compilation times. Will change to include asm/insn.h. > > Will > -- 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/