From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0043.outbound.protection.outlook.com [104.47.41.43]) by dpdk.org (Postfix) with ESMTP id A256D5920 for ; Fri, 12 May 2017 07:46:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pcgErr4Eu1qog1Ct141r1hI408MC3FzQQFCQkQZAorU=; b=V+qoqMjvaFqvDDIm7fvaHFdg8DjoKzlzw2Xg6KEuWEv2hJYebyA37L34ze/NVhWPP1urU+ArcDE4fzVI86frGkVPTFUSRe2o204QeFm2VxfgyQe1yT1B5oePEMf7OZzWmA7qVk77a5jQbCUREM2rBFF5eprAY1wnz/zDEpkQ4mE= Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from 1scrb-1.caveonetworks.com (50.233.148.156) by BY2PR07MB2421.namprd07.prod.outlook.com (10.166.115.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Fri, 12 May 2017 05:45:59 +0000 From: Ashwin Sekhar T K To: jerin.jacob@caviumnetworks.com, thomas@monjalon.net, maciej.czekaj@caviumnetworks.com, viktorin@rehivetech.com, jianbo.liu@linaro.org, bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com, konstantin.ananyev@intel.com Cc: dev@dpdk.org, Ashwin Sekhar T K Date: Thu, 11 May 2017 22:45:42 -0700 Message-Id: <20170512054547.753-2-ashwin.sekhar@caviumnetworks.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170512054547.753-1-ashwin.sekhar@caviumnetworks.com> References: <20170510101643.30556-1-ashwin.sekhar@caviumnetworks.com> <20170512054547.753-1-ashwin.sekhar@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: CY4PR04CA0039.namprd04.prod.outlook.com (10.172.133.25) To BY2PR07MB2421.namprd07.prod.outlook.com (10.166.115.13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b130c090-e43c-4660-b93f-08d498fa2b9a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 3:RAxeH5sf7y6nlxAg8CwAbAadxYWivh/RLJvdVebMpnhrAbAZ6t8O1LN/d6Am9vjkq4IGupshi7oDzS7NCKosG+P1++bNIxK+FoU0HQj8XjBonZdJnOvsZYTDeaYhgakKrRk1y4gYFg3t/FoonmfwCWNhVx2v/C73Yq4ZYwZRXJ40Fu8qD4foicPu7F/3m44GU7En7QkWeO9qMrhULzWrfV9KgwJQtd1cWnkh0j6+uin05TuIm/Kx/JQxTrCvc+7tr9dt1JKXmVwwtkV+iIsS7ebBgQEmBWCTwsdNo5fCaImvA/5drLuns9OXRNZOjGJZ90tvmP0Il6RtKXC77psGbQ==; 25:fschtncxny2rBjV0R29EYU3Mw0oiwj0gGp88Eqd4NI9fhl8lM/vWdSRm8e7WcvZUbmsiUfW1f5hCM8ioiGa2idZyHJfKOAw1fmSoN6Isnkb/nhfruxR+j+C4DZEc6d5Z5L0tJjJBBnbt5+/sp+O38NAvYd9KqMcHWSPIdy4AROocfYDwAd3yME5Jn3eMxmJnSZAJ+C1X2WVVwJvn5OJcLTebqLNHeZ+87GppsJ70shW/ogv85RoOjhaE2mCBRK+3M7sDNeHCYhp9JLfKRB6QRZvjpRhnFWW13KmR5H1Xv1fRjYakK0mZewcy7p/YlxDumSvZtKjRZ++wb6sAfqmhqVBJ9H6QnOFRmq2RNda5V2vbdCoKwch1bowUmXovI+/auqqtsD1Z67/27GVaWx6ozb8QKDjgy6wp8wXTB7uDWmCSaLA24CaivbdLLUDfDZpKNRGBlqP5rWqQVwaIuANPE8WgzLeFZtpY/tjjsMtQjP4= X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 31:kiuUpsJRHmeLiA4mmIhlYjYoKORfO1g0Nrhb1pPLxJW8XZDWrT0pmaayqfmLPjcgqHmrYYhPVge19gXUrcUyW2nF9PGHAnHi/2N91K9bY3GfdZFz0WcMhWAsN5K91f1KxotvJbmPE7wnY7mNLV9WGbKSuT4o4ka3GHDdZSwy4QE3xcWKazBLOpF49v/yiG1nG/MJUkePbLWhoRQGO8ju3ToZ0xZD9GZOVGTZRzvfyC8=; 20:77XD54h4gB2nJToGFIghI66dZULz6541Z7iZQWAKDZm1jMl3swhaMyjp8QJcwQpQISc1GUqLk1807MqMCFAXdXGo0ubFSRPd3IhPLuVnbQGLtf4SUimKonE4H3ajzz2I1RXDKxt0Ej7GMyaXlW9W6FEoeVyTm+X8Zqu60s65WcXCifyJEv3HN385q6Ho0MJvrW457WI0d7fyoqHe2ljs53tBIcE08x4TqCuM6dL6YKsuAL1E/yfaBqSnZPkCBAUFvsHPNMAHdBsqPtE14zU7zH/XAjqAdauI/NpnGNTt4Y8pLMYEVFQlrMijiY9YZwhBwuMr1KvDoIVGJXbvC/aMD0U9RbuGaR1qy2WslkRJ5OZV903LkNN2Pq5INXMILE+B0A22ZlRk8M0IjpEG21Lt4NGuAe/R7HhubDu8usYCH08eAODYuAIwPl4fdfenGvCm5oTzW8x5/kv90V0/F3YkY56gRAFIo4CAebRqZfo6CI8d4NmsxlkToIi8qI1n2ZtwK4Csr4Dj7NncH1hrEspMz8ct1WkQC+3kuWbt69+yhbpBDVenh232HYQmXdgkNLI6+Tn05qB0/uPmW9+hbN+vGdwhFLJRcq7unV2DsbnlWn4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(20161123564025)(6072148); SRVR:BY2PR07MB2421; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 4:6oNLyfiObH7Loljmm4BhypYLpREmFlgvhJzcoPU/OKalC+vOg0rMtRybhGezuDSr25m2z8DSFmYTvBd0BjFvXmpRj554uVbify6VM3DjyeKimJ5+IyDA4+MqkpVS4h+eCR7bBmx+jRG8Kk4y9GtilTgOhrpGriFxWrygODue7/RcOV4nJzJST4kDJyexz2sXDnE7o7urGKZ13vdLVPu+Tg1DKJE0hkebQbaq2NT6FxDVdTzPPsE/Ru9+Yi0Uzsh6UHl0X3tY1SJYDs2i8cSxt3gRAqVUaSljqyRlQGSgb1H+VS9xpDvDBC8wX/t69Kx5NZQg9W9sr3d4VCi80wym+Y4oM+UVJUnH4NBF/uPT0xyBtA/nx8HT2opqmZ8tQeAK2MVCILoeM0gvEgZE7C+BcChwIBd1f8OLCU4VPOw3olefFHQTcYz8hHnkRWaw79stKb13PYRCkzqaFQRBmDrGkb1iPnI05zcdbZC0kfBoy6Y8GJ2gZcJByqYWhYsGeJ5yyjOJxTXaX0LQguJKbMaEZYj5cCssuJlYVWALEbiB4FXAAvme0aiAGeAiNJXV0Cw1VMmaJWrloaVYsBJJ/C/eivOjMYWSL1WafiJrZUga3+3KzevfgS8jBPWurKvRF7wpJf5VFmN81mqXld1riGO7ZKt2X8F4gai3YYHr36cRdqvEhMGBGTdV6gdv4cCjEFxLG3lFpFOKVy5Wpx9zrNyrMyJYAx7Hqt8PDmKHbiyTXj2GUPiFrs3k6AaCeRgEV8XcoBiVd424mlOFZ+WAh9Xrrg== X-Forefront-PRVS: 0305463112 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39450400003)(39850400002)(39840400002)(6486002)(8676002)(6506006)(25786009)(81166006)(76176999)(42186005)(2906002)(189998001)(47776003)(66066001)(33646002)(48376002)(50986999)(53416004)(50466002)(53936002)(7736002)(4326008)(478600001)(305945005)(6512007)(50226002)(6116002)(3846002)(2950100002)(42882006)(72206003)(110136004)(107886003)(36756003)(5660300001)(6666003)(1076002)(38730400002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB2421; H:1scrb-1.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR07MB2421; 23:2AoIcYlvLqNcKvRsTJlVPx+t8PTCnz1KPv1BYkRZ2?= =?us-ascii?Q?GsE+n7s8URHg16ISooGC3EZUav6sKbcIIf88tCoctFJAkhEPzFjzUOSi1f1m?= =?us-ascii?Q?tHb+LJBMr3L2TxQS/9gQ5OOitAD7W/TbPKh45xzsBKyR211XG1l5Fo8jqRlo?= =?us-ascii?Q?9Uxq1KDxeINf+J/s8m5iFsxZ2WXzU5uSntRTx9HaVfbuZL7mc5qgpe/v+5FV?= =?us-ascii?Q?cJAjRWugzzlcwdt8LVfBF1Oxg4SmV++yVRkXpqLgur6kwSORCUb2FK6YI1FB?= =?us-ascii?Q?tOHt6hdAQ/kR6azledDhhIJ5yqsL2uCxYXURf+z0h2VicfY6aPLYasINpfxn?= =?us-ascii?Q?L2LvZky+4jQKg1mgufP+U1jx9m4mcnFVLUqQqZHRxx8gmLoj+W5mfYncMnVZ?= =?us-ascii?Q?W19ayuKpGXwufuy8VjvIYOUeWEtFW9qpxWlGfG17v1jF5oGPAeP2PjrQcY2h?= =?us-ascii?Q?h2Bu5Kv7zbBOuqqF2E4gSopWDaP+ZtgTS/y99VFD7SPmsGzWM1lEf/X1smZm?= =?us-ascii?Q?PaVpVpV/i89gzGeLLpmrqiIaS4pWbyNsaBwq+T5/hVymMUZ12iCUVvXGYE/i?= =?us-ascii?Q?PEdyJ+BUHEQ07r1ZsK6I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yiEku3sfs1fNmPx7Bw4Xu8wg7/yISAlVxCZSkCSgjPTzBNcXW89WWzElD/c80P05Jh+/+afq6Wg==; 5:f7ZH7aF68gSU9cqYpNwPLUb/YGfl07Jn/MegWaakMxed3KOxtjh1yF6m2P6cvmdbpl/jqRt7d7V76eufJbGxJJhQvG65M58cXMny//Q4ycmhbVH+2VBIPOtt3LdSuKuVOUUbf6cKzvWaEF67e46qrQ==; 24:rZCPiiZxyyjChR/edxKF+qcsLpai2ZSaPKCw3FyT/g+sEoqPvejMLr7SZuy8XbqCxeHb9ZcgTEGnDXZEvtVrWd7mdXOMIPQ2nEFfepshA94= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 7:VomoM6Tww4fdYtH3e3EbbIKrMJy/Ou7lESdMmO5lZNgudQ8pMa3tuzVm0m4WbSgu8LJfISmbk9BSktKNFYliVWDH5+D/q1vQ/9KrqLW44g97GkZ/ZrdMoel5twN0cf66dXnDluhtpk2cGHQSidkBia2+1AYVZJXSX2iOnSu+w46efN9fOXqA2orF2M8uXgEQkHRozdR6pYo+Wn69n9i1y8DX8S051sz7O+CSnlM9Yzw9rSCYxdMKLgZkhNxCkCTMav5wl78sSIlGEZpgIFoSzLGcarkg+pO7mpuoZ1bAxt9KMlO0PH4SzbLlQb8O97xYcHI5Pw5t4VEin5nJnOXGfQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2017 05:45:59.6888 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB2421 Subject: [dpdk-dev] [PATCH v3 1/6] eal: pause while busy-waiting for slave X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2017 05:46:04 -0000 Instead of simply busy-waiting for slave in rte_eal_wait_lcore() do rte_pause(). This will give power savings. This also fixes warning -Wempty-body seen with armv8a clang compilation. Signed-off-by: Ashwin Sekhar T K Suggested-by: Jerin Jacob --- lib/librte_eal/common/eal_common_launch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/eal_common_launch.c b/lib/librte_eal/common/eal_common_launch.c index 229c3a034..184846606 100644 --- a/lib/librte_eal/common/eal_common_launch.c +++ b/lib/librte_eal/common/eal_common_launch.c @@ -54,7 +54,8 @@ rte_eal_wait_lcore(unsigned slave_id) return 0; while (lcore_config[slave_id].state != WAIT && - lcore_config[slave_id].state != FINISHED); + lcore_config[slave_id].state != FINISHED) + rte_pause(); rte_rmb(); -- 2.12.2