From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0045.outbound.protection.outlook.com [104.47.40.45]) by dpdk.org (Postfix) with ESMTP id 514557C9C for ; Thu, 11 May 2017 16:33:49 +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=I6pFuE6fMzzbdC4p1lzJtl4HfAmmxJ+xt0I7nteLotk=; b=e4iRPawECa5hRwSBF0nNKTHeeCUU6XJTgzzFJG/d/8SJrG9OVA6MKXALAOltF1n4ulKqfM5k80wj9tDVnOq9ZeZFZgT58ZFuh+iFmxqpOy4NPvwJn6NB4hY3ST6tgeKV3dMlHNtrXDqxVXRMPYOftMwIrPs6i425dCoK0v7DABo= 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; Thu, 11 May 2017 14:33:45 +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 07:33:16 -0700 Message-Id: <20170511143316.45835-7-ashwin.sekhar@caviumnetworks.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170511143316.45835-1-ashwin.sekhar@caviumnetworks.com> References: <20170510101643.30556-2-ashwin.sekhar@caviumnetworks.com> <20170511143316.45835-1-ashwin.sekhar@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: BN6PR13CA0043.namprd13.prod.outlook.com (10.171.172.29) To BY2PR07MB2421.namprd07.prod.outlook.com (10.166.115.13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 54d13a4d-62a2-4fcf-2aeb-08d4987abbf6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 3:2UyXQGufzASjltaM6Lb9YFOV1zXBRfp/vc52vA3ECKy9Ju2jnrWhNfKKwXKFPI3iLshp9Mg64NMnvY5zMAIkP9ECgGJAu1/1goWBRSGqtbsu7Xsxz7y5VB7GuUK2clhfB4RX4ipGW/TgXyVz+fz5LYNyPO4TioTyVuTFk2j09Z0h0VFzDmMm2Wn/cxjp7TrTKRqLroBJobGFbqgBGfnAtCj5pDVzVdWMlCc6Eqqnb6bz8heb3GtKSghXFDDCE7Yku4um2oWrNEZWJgMLvUJ+emzz33lOQG+039dJ4vIuNh30fzFn/2dPJ+ackQAHH09/DV3Gp5TH7X+heHEZMG0bOw==; 25:P86B5K9P0gnleO1LZ4LzZmkuDFEYtE9RJmWxswxsBrEybu88NFB5jZoHbKaUhxbzVGoQlt1bAunx6mee0SO4prDnoTSOuCNQDYnx/pKNz9eJf0MNDF/3b6N1pfKPHW5GvTgCZ8gR1PMeDX3iUP4nlVA8uqPV/hHeE6yylFe9bcCIVR6reI3mjDEOoDq/t9yvmLsCQZaEnVFiddkS2BgMFlO5QC9swacPe6skAez2py88Z+CPs833yDzJpWpXhjhJH0TwcWV1kj2PHKoY5yIfeH758Lg9zrpuCD2SWiXMqjZ5Tc6ZR5J1BaSpVB1Id5qv0sxXrlDFDzE+ide76V8m5EIK2dNDaE8cU0q20JkfhtWWCW7/SVVnMRNFtRFGgIa4ddXtr6ayToohjnwT28vbhmsTLYIEBF2DvwIB54mF+dtLWV5x7wtBWL6TLRvgKP5sF6W6URoq0P8mwh1xn/UJbHcMopi5rBOtS3M3LrUk5XI= X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 31:ORVp6lzA2Hw3i2LHvdrlmTsLDIldYBRiz7XeZOlASPlCT956R9v8ehlMViuX+hlxvBNx5Isc49Is5DVDj4L8ea9VprFYerlglLsK0/mvEfpojrO8r4CHg2OfszDB7+dNeZ4q0rX0W54iAcO6yI5kxB8C9VBfmiur2XcI/Q12Da6NAUqCNsvcjlenxbpSeKEnNwYVhhxF2yM9bYkiPXB4wzy49LWnWRT79lR1bfF8yfA=; 20:+MO1i5pOtKpZUPe9tnb3eymaLMTFtJu45f+/5eoCcGSEH7SRSa2n/VERvsDIAVZrnTIXNNmM1UlN/cH6xGhjnXhMN1+EFoMu7dzq/7bVpnJNNC6G2kjeJMKxES672R0q7Exr3VEMriYSh5b8jxgSlGGClVrV6e+RLbOJGVcpdLYyZmNSNet0KZeVQF+g668Uv2MJocOSaOJP8/igh3SCiMY9/oSYtz0sElwrRsNWUVl22SOdNBp9F6/Hb21/+cwp3nQP76GVp/G1x4/JJkZgFnXFk1n5QUVh9mr9WAsK71ahl4bEhoks59W7k1AfqmI5gSTkGPoz1UZsloKIL0RJS5TBsLloBsUGOWfybTNEMs1c+E1CE2JjSKCOcMXYZjHlv7vtIzH/OMTLZFKijYBQi7n0jkXaPAxAGM9QIjvtQu7c7GgpH6fPKXnf1oTzFhE3tYx6vI12KdM+ltkIUCgiN1Z2QvKnby7fMvNMQzfnBGLhftcTr7wiWjeTllAXClsnsULgbgHwNAn8qyIJuqxBpXVMxdXYnjhfw8DGxkVq2foW8dhPzqL4Rbq7yNzto9dwIuKxRAKepMSG08P74iVW39bL12cg3OEKQCHGU81ABtQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(10201501046)(3002001)(6041248)(20161123560025)(20161123562025)(20161123564025)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:BY2PR07MB2421; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 4:aglidAjv/wwciEWpUMpmro8fNW27UxwKb7Csrb9qP+BEnzhgIm7UuZZaNC4SAHm//OqsvYjXcXIl7NkVOvynlX8hJF2ZxRAlcxVhaxa2Gmy9/8XXjL4kkKrPIDwj5fMlw8GN6w63aqauMoYRzDiNosOeQ/7Aetl8fPQR8w+Uo1a5TMVmFaBnTDSqUIjk7c7Vfh6tCLVxjEWF+8k6bdK/X2qhLNrXcVyAlEDsKqZzLHXd4EYTzdXC7BAvZgaIzmDn8KHCCfQ75KEnFsuzDRz2CeuQzY3A7qYb3+g57tlFQgqGxlmLPfKQTJlEiHTUjtxAf4/yhwIkY/YVKxxbtgKxxhxL3IZ8owRMMXrxIZE8y0JtmpCuwbgS3SLNFPOCqStmi7/hCESIm0eqFAPiyXaJNosobkSgSfK4ZBu5ZMOIV9+mhjgoG7JVZyXpKTBRZxko9J4aSpkXrr5UrZLueTgF0sTQTvwlA6fpEvmVoHieoAq4olkWXWLJesDcE5qhS+u881mbD7XzqKAil01oZi/A9DzKdfOq+ih0CTbOH5jRzjFzSVDIwSkZMVdzTPokMCutz97lY2e/1JARwWgqPXsaMV2phBqZSzteMZ2qg/ieGe2XEzfX4A75BM0OHfeHb5YtMqD0SaULCdVA8Ve8PkMfRtdQFkL4cKiIm2eGXGLSYKZ+HZ8RqyNTklAg+O0PgLAhvRJ6n8/tP2PBEVJbTePKqhPIwzLzD4CjTU9lAfrqwn/izDm+5mxEHyGgioYQ3ZclsGIwF9N6gwRtjHvaZyLasQ== X-Forefront-PRVS: 0304E36CA3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39850400002)(39840400002)(39400400002)(39410400002)(4326008)(7736002)(53936002)(478600001)(48376002)(50466002)(53416004)(38730400002)(72206003)(107886003)(110136004)(5660300001)(1076002)(6666003)(36756003)(6116002)(2950100002)(3846002)(305945005)(6512007)(42882006)(50226002)(76176999)(25786009)(81166006)(50986999)(6486002)(5003940100001)(8676002)(6506006)(42186005)(33646002)(47776003)(2906002)(189998001)(66066001); 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:KObGN7p2ufoUOijGBw0NUHTBA0gmtyhTYlvfmSXJ9?= =?us-ascii?Q?ILrlKAO3Q5tRua/7g5JKYJgK9JOLysejVuaSOBGiGVOswq2tAalmUGtSPfXi?= =?us-ascii?Q?BuT43JU/PI6aZI5n4kLK9lmzifilhyvZ46ugyQKlkM2puk+NylWVV1Pwc+Cr?= =?us-ascii?Q?MAtikRT5jFzsEPsBhtehcozW18Id6Pel1Yi3u4x33itPON7aluBQTKNlSXdF?= =?us-ascii?Q?quvsq3HY3F17XsG11/0P7rXyIG8TVJ3oaKPN/p7CUgzg8YCTStIrmsiwZfLr?= =?us-ascii?Q?7f4hUWQw4xUCNJns/QBOlODnpQu1NU7RLQCOXQnNWMjU6EFPxbXRk8FvjcYK?= =?us-ascii?Q?R2LetD9dEzihpILsqa4b05y4s40AzZnARKSBzaDq78Co+MzZ5aW5Zr0wToKA?= =?us-ascii?Q?EdILL4Q7RzjA2X6S2XKGpRGYR/7upyH9v100CTconK2ojawbB9xOAM/f2EAi?= =?us-ascii?Q?nyRrVUQymB1CPucmGUQ/vwVPd7oHrU7WzWjCRtpkMwWDD24wtX/FO8yuSEa1?= =?us-ascii?Q?dMfMvHp0T6SMI1tOoLHFlfcsCZn2Hb1QPVAbIRrFhFVt11gsWV/oXHvcDCg/?= =?us-ascii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moYy9uBYaiYT4fMkMEHffp5z9BbkfVVtDXToRSUGt+h3h8zsMm1fUyfCrcZetJzLKteouOd5z49HpQ9SHlbt8PcoYFVhtEuM5dcdzSb+dq2f1bNakal19Jps4dO14bwDQVPJMeAFyf1Bjw==; 5:hymR87EnyFxk1QhvBxbkdoN+G5Jdskdx2DQStFQ128rW00B+ZELcA12ynyvvXPF4++waPjwpC/fodIxFm/73qLoRVjq8EVgJHNlgwwulYZPRN4nraO/o9pyGZQy2ezI/1IpcskK4nmh+uPUTWUS+pw==; 24:h8z/kP3QnjFW5nPivXeqN/K95EE325rmhl8f7NQ2reavNcsx85a5wyt5s/aaEfiSYsGRYUo3dHGy+szFxxaVDrkrLvisF562iT1FI9aM+5s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 7:IJVY8LmBjn2RizRN32qB6Fub/Xx0bODVVqqfJ52rsycGG/QwZCZJdaDXS0l2xCmph1pEQCIznCXQm9feYBnvroOFCv0LncHzn5Jo38v4cIwBrT4nUJ8BTjZ78iIqFy/HcK3xn42Mtq2fxxYmcu1Ux2s/PypZ5g7fIs5nFyRGCArIiZL6gaIBhOkOQ01TxXzQzW09ladhwvbPRy+3PIuxhBeG3BaQGIFHDzbL1Q+DkHDhWEeBFP+PrTJGEh2o9xzdxD9eXdW44Vr0SFUVtLs6PRE+oec9Uhs0xs5sPvmt8jl7QV5eyWua8S9PIWrqiKiJjlcVZ53JWdIvzZKpQ79G+g== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2017 14:33:45.7517 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB2421 Subject: [dpdk-dev] [PATCH v2 6/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: Thu, 11 May 2017 14:33:50 -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 --- 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