Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884AbbGaHxM (ORCPT ); Fri, 31 Jul 2015 03:53:12 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:52434 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbbGaHxL (ORCPT ); Fri, 31 Jul 2015 03:53:11 -0400 Date: Fri, 31 Jul 2015 09:52:59 +0200 From: Peter Zijlstra To: yalin wang Cc: Catalin Marinas , Will Deacon , Ingo Molnar , anton@samba.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, open list , jbaron@akamai.com Subject: Re: [RFC] arm64:change jump_label to use branch instruction, not use NOP instr Message-ID: <20150731075259.GR25159@twins.programming.kicks-ass.net> References: <94E2034B-9DE4-4ADF-8B2F-197D38A363CF@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94E2034B-9DE4-4ADF-8B2F-197D38A363CF@gmail.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 758 Lines: 16 On Fri, Jul 31, 2015 at 03:41:37PM +0800, yalin wang wrote: > This change a little arch_static_branch(), use b . + 4 for false > return, why? According to aarch64 TRM, if both source and dest > instr are branch instr, can patch the instr directly, don't need > all cpu to do ISB for sync, this means we can call > aarch64_insn_patch_text_nosync() during patch_text(), > will improve the performance when change a static_key. This doesn't parse.. What? Also, this conflicts with the jump label patches I've got. -- 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/