From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7887BA0096 for ; Sat, 16 Mar 2019 18:18:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7DAEC11C5; Sat, 16 Mar 2019 18:18:31 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id F1B7311A4 for ; Sat, 16 Mar 2019 18:18:29 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Mar 2019 10:18:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,486,1544515200"; d="scan'208";a="126017504" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga008.jf.intel.com with ESMTP; 16 Mar 2019 10:18:28 -0700 Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.142]) by fmsmsx104.amr.corp.intel.com ([169.254.3.38]) with mapi id 14.03.0415.000; Sat, 16 Mar 2019 10:18:28 -0700 From: "Wiles, Keith" To: Pavan Nikhilesh Bhagavatula CC: "stephen@networkplumber.org" , "thomas@monjalon.net" , "dev@dpdk.org" , Jerin Jacob Kollanukkaran Thread-Topic: [EXT] Re: [dpdk-dev] [PATCH v2 2/2] eal: roundup tsc frequency when estimating it Thread-Index: AQHU28bQlfixTMrl5EytlEBwO8MI46YOyuMAgAAGtQCAACS7AA== Date: Sat, 16 Mar 2019 17:18:27 +0000 Message-ID: <96FB992B-82D4-4B5D-97B1-5E255DD0621F@intel.com> References: <20181129083138.23029-1-pbhagavatula@caviumnetworks.com> <20190316070302.32432-1-pbhagavatula@marvell.com> <20190316070302.32432-2-pbhagavatula@marvell.com> <86480C64-4ECD-4F4D-968E-5716D02D7D83@intel.com> <3e56d8dbbddfde0c48a26c6257af9c43a42f99dd.camel@marvell.com> In-Reply-To: <3e56d8dbbddfde0c48a26c6257af9c43a42f99dd.camel@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.251.15.51] Content-Type: text/plain; charset="UTF-8" Content-ID: <969F83D32CC41F488590B2AC3A2D3F2F@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [EXT] Re: [PATCH v2 2/2] eal: roundup tsc frequency when estimating it 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190316171827.j8EpSFRWM44x1GYDwIPuaz7qcKIE-JYKp8I0Iv4aHEI@z> DQoNCj4gT24gTWFyIDE2LCAyMDE5LCBhdCAxMDowNiBBTSwgUGF2YW4gTmlraGlsZXNoIEJoYWdh dmF0dWxhIDxwYmhhZ2F2YXR1bGFAbWFydmVsbC5jb20+IHdyb3RlOg0KPiANCj4gT24gU2F0LCAy MDE5LTAzLTE2IGF0IDE0OjQyICswMDAwLCBXaWxlcywgS2VpdGggd3JvdGU6DQo+Pj4gT24gTWFy IDE2LCAyMDE5LCBhdCAyOjAzIEFNLCBQYXZhbiBOaWtoaWxlc2ggQmhhZ2F2YXR1bGEgPA0KPj4+ IHBiaGFnYXZhdHVsYUBtYXJ2ZWxsLmNvbT4gd3JvdGU6DQo+Pj4gDQo+Pj4gRnJvbTogUGF2YW4g TmlraGlsZXNoIDxwYmhhZ2F2YXR1bGFAbWFydmVsbC5jb20+DQo+Pj4gDQo+Pj4gV2hlbiBlc3Rp bWF0aW5nIHRzYyBmcmVxdWVuY3kgdXNpbmcgc2xlZXAvZ2V0dGltZSByb3VuZCBpdCB1cCB0bw0K Pj4+IHRoZQ0KPj4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