Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754990AbbKQVUA (ORCPT ); Tue, 17 Nov 2015 16:20:00 -0500 Received: from mail-bn1on0070.outbound.protection.outlook.com ([157.56.110.70]:61916 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754969AbbKQVT5 (ORCPT ); Tue, 17 Nov 2015 16:19:57 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , , , CC: , , , , , , , , , , , , , , Yury Norov Subject: [PATCH v6 09/19] arm64:ilp32: share HWCAP between LP64 and ILP32 Date: Wed, 18 Nov 2015 00:16:49 +0300 Message-ID: <1447795019-30176-10-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447795019-30176-1-git-send-email-ynorov@caviumnetworks.com> References: <1447795019-30176-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.143.213.120] X-ClientProxiedBy: AM3PR01CA036.eurprd01.prod.exchangelabs.com (10.141.191.26) To CO2PR07MB617.namprd07.prod.outlook.com (10.141.228.143) X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB617;2:rXjbM/kFHep4U16S0uuKdsXMJkKAMFeW2VyyqsBDAMIbbFQDDyx8lQ4oanMMUcyT8X7xKgpVjHOZRBa7FsmdXLEtBMTx14FUnL9A69aZLgNItpUcyddN7seBbv36gN24Y+XWFyjYKQ1YpV5/lJNVNQzxyF7T8Vxijyoj6yVaDzo=;3:KmAty0WVUp8hSp9ykdcLgGRva5c5A5gI3qv7uw+C9vG7iu1O1+FmiI6a80hCILEaXXALe6iSVlIori8jRthHwDHxs5SYndPiicuQomOLD4cpeS3lH0uVyhzG/FGZ6xF83AF+hHMYF+oBD4Z53t7wow==;25:UvDe3uEElmm96X7fcRCa5rEdsnozzwQ5AGgJu4qvwOpYjlggxZTuKVk9pF/JoEdWZanVrWIiYSRldPjsB9kAY0b5lcTgZM1XK5Qq3/GVid4Pt6/Y47FGY0qgGSGtrCcZ6cggkaw5jvJMnFTpZmIYCeA8S6k10BYd17G1CX10ytC5ELH30orXiEE//2z9LkKObVZXasemm+i9klbrI8iVh/b1bUrocQcRhB7mHcPEjOmsf7QdEgSNPdw6RxkZVpeuc28GSq8sJafLKhUxeLT5eQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB617; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB617;20:XgPtxrMZuSp9o22HEEJS7BXEt1k0P1/IB2rRhTApe6eAwQOYAGYw01DpKOkiJQNXqA4+BGZ9R1US9imugxeZiLph9IZbCV4m+dA/25aJHQ1j3dvJBDs7Y6NFwNfdquJBaBJ0+V7OI7qL/nkM/urF5ymD2a7nHknDYIU+RzKTgSkwyFt+MAhQZJweeHKDMVRZD2ewcHXnOicZOXhG7G1aP7LRqOwSelnfLT5THaKGVlgGtGhCD1mAYCvlfKpHo+OBsW0F1mkxhkX83pTMo7MRLSJBbo2xAHEVC/Na6S0MiTzmZzLCEBZ/nZ7NB/dEZ2QJcTn58xRrueQEB3tgtbeZHjQzX7fcFHunGsucq7ZP3GQC83MzYv/TqlwNnvpr6ZQA0eAFG7NLBZk3NcFjIDDGdWnFCg81B9yiGUiNP6TJYmmA6x+VHTjsrkBg102si3u0+gey+mTvlgZDOfkTm9il98D95AG7cg1vSIuY6u2NDXydnnKdvzu4IK+/SfjatgdNw8o0+/Ji0GBOxgLIJJP0S2uuXUhvDbqi4LKi1ft0kW37vH42+zMryjjeyeLNl6ebQC7t+xH5Z0tSRvoAOjnGAn+pvJBiif9lJERRGKmKcKc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046);SRVR:CO2PR07MB617;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB617; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB617;4:Plh9bRgwxifhVtwEZRJsr31Q7u1pts5OFOEKX4Ii5NLf3yHdvGzQcl2jpeqTEiM3VXP4FMqCVHku9s2J6IvW0rta08vyASmOIKKfj4PhT7nZ3yB8+R+oUhQrGVokhVVM3bF+O9POd+wwzpeD/AbMSowruH0OcfRdypd9FQ6sWgS8+1dMv3iWS5sK4nTupQbp94q1NR4CR1VXnvmZ56WMFpFuPy0pFpNNSKDwnpyH+DBngfA17UFciZC6DOdoQtBOEkVF4IUYd2N2r1BxPRbIuOf8WQ3MKT3nF61uZIvvXQO9KsNgspMtVYI5JNOGFHZOvD+AxCXxlaqdg1pUSDjTUMFKfRjVgsG1OEVGRSakHLimqFp/wKEcXMwrjA/uc4UD X-Forefront-PRVS: 07630F72AD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(189002)(199003)(77096005)(4001430100002)(5001770100001)(36756003)(97736004)(2201001)(189998001)(76176999)(101416001)(92566002)(47776003)(5004730100002)(5007970100001)(5001960100002)(107886002)(81156007)(33646002)(5003940100001)(50466002)(5008740100001)(87976001)(50226001)(48376002)(229853001)(42186005)(106356001)(40100003)(66066001)(105586002)(19580405001)(2950100001)(122386002)(19580395003)(586003)(50986999)(76506005)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB617;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB617;23:8+Mog0VkxTifOidvtrxKyAilNNBRhVG3H0qL4tVgZ9?= =?us-ascii?Q?ESz91ttczet8fWmOIGut70nQzbQ7iWg7zkhz+Wne/E8Ky1cYE6c597ek5r65?= =?us-ascii?Q?3r9WAhj/g56gj4QGL8bGhWU87vCYiPNrjmd3mbCZZBobnvbofNvX7Hg+L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K0Q51su8Zbq/HmC+y+YADHeNfzPP0qlUAH6ZmrmZik?= =?us-ascii?Q?88oex5SZ9t20DNO5+nhhN6Gt8Vczp6W3K28j/n1KEHYFafKUY0M4kP2uevGt?= =?us-ascii?Q?GwHJdygOs=3D?= X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB617;5:wiFxkmBuON/KBRmBnxwtFXc/LPNlwvEw5xtpWvlEO9ErR2TPZP4dRaFpaQac6Stn67izeE9b3ijMBUOtsm4mHXGcAjn2m3Ii98mg3ZJOOFS2h5y5UeNdzOrKSC8ntp8YO3gt5kvA5xrTDr8c0fpFew==;24:MQxUl/tzDKCqjTJOFIGc5IooJBXmLLQIxxZMAD4umI45Rq+gOWSYEmxvWmJIoeB0/Ggik8Udnj1VrzZ1GiM6pngfOmn/xGzJ8JUd3pPP6Xk=;20:vuJWOc+3ldMLyuV/WUu9AsnyzGFuehiILbikAHBDuYjzr24rtGF2nw9hwejfnmubaI35yLMssuLdy3ViiGGNKw== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2015 21:19:55.2793 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB617 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1362 Lines: 44 From: Andrew Pinski Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- arch/arm64/include/asm/hwcap.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h index 0ad7351..1e5361e 100644 --- a/arch/arm64/include/asm/hwcap.h +++ b/arch/arm64/include/asm/hwcap.h @@ -47,9 +47,17 @@ #define ELF_HWCAP (elf_hwcap) #ifdef CONFIG_COMPAT -#define COMPAT_ELF_HWCAP (compat_elf_hwcap) -#define COMPAT_ELF_HWCAP2 (compat_elf_hwcap2) extern unsigned int compat_elf_hwcap, compat_elf_hwcap2; +#define COMPAT_ELF_HWCAP \ + (is_a32_compat_task() \ + ? compat_elf_hwcap \ + : elf_hwcap) + +#define COMPAT_ELF_HWCAP2 \ + (is_a32_compat_task() \ + ? compat_elf_hwcap2 \ + : 0) + #endif extern unsigned long elf_hwcap; -- 2.1.4 -- 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/