Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753129AbbHUDXs (ORCPT ); Thu, 20 Aug 2015 23:23:48 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35870 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752992AbbHUDXr (ORCPT ); Thu, 20 Aug 2015 23:23:47 -0400 Date: Fri, 21 Aug 2015 11:23:34 +0800 From: Kevin Hao To: Peter Zijlstra Cc: Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Ingo Molnar , Benjamin Herrenschmidt Subject: Re: [PATCH 3/8] jump_label: introduce DEFINE_STATIC_KEY_{TRUE,FALSE}_ARRAY macros Message-ID: <20150821032334.GB12451@pek-khao-d1.corp.ad.wrs.com> References: <1440072876-8321-1-git-send-email-haokexin@gmail.com> <1440072876-8321-4-git-send-email-haokexin@gmail.com> <20150820183158.GB3161@worktop.event.rightround.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <20150820183158.GB3161@worktop.event.rightround.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1802 Lines: 50 --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 20, 2015 at 08:31:58PM +0200, Peter Zijlstra wrote: > On Thu, Aug 20, 2015 at 08:14:31PM +0800, Kevin Hao wrote: > > These are used to define a static_key_{true,false} array. >=20 > Yes but why... >=20 > there might have been some clue in the patches you didn't send me, but > since you didn't send them, I'm left wondering. Sorry for the confusion. In order to use jump label for the {cpu,mmu}_has_feature() functions on powerpc, we need to declare an array of 32 or 64 static_key_true (one static_key_true for each cpu or mmu feature). The following are the two patches which depends on this patch. https://lkml.org/lkml/2015/8/20/355 https://lkml.org/lkml/2015/8/20/356 So far only DEFINE_STATIC_KEY_TRUE_ARRAY macro is used, but I think it may = seem canonical to define the macros for both true or false keys at the same time. Thanks, Kevin --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJV1pm2AAoJEJNY7TDerrFxgGoH/AzZdWnV6lQPEj0HihJa4Dfv lMEgt4lyG96JqJ3pMnmT5abP353nk7LJBKd1Sy6I0PKyfcSzKVR9qkAiAE1rdOt1 /uXF1KDtZdrEKi2zo9a7e5JncxQwePPNljTA7OF0xNfzuvChgPMLLp5cWlbUZUoy QqUYpWQouWE8S9gt5FqQhy8kusHrHkXHRYsaA8w9jA5ejOLPXYuZ8pEdHLiwp7sc czHpe4deCYWMVruDrmnLJYyRM9Y8joLidDIdTQMkGnfx2Cl5FN7Rmdqu3OcjOkH1 kwhcwaerDlUb6lFD5VShIfm3ieNFdr42iJijbEdtOFbw4SNkrWz2s5p0nwhHGUQ= =AVsk -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50-- -- 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/