From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D38265A8C for ; Mon, 23 Nov 2015 02:29:19 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 22 Nov 2015 17:29:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,334,1444719600"; d="scan'208";a="826767916" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 22 Nov 2015 17:29:17 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 22 Nov 2015 17:29:16 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.110.15) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 22 Nov 2015 17:29:15 -0800 Received: from shsmsx152.ccr.corp.intel.com ([169.254.6.193]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.223]) with mapi id 14.03.0248.002; Mon, 23 Nov 2015 09:29:14 +0800 From: "Wang, Zhihong" To: Stephen Hemminger Thread-Topic: [dpdk-dev] [PATCH RFC v2 1/2] lib/librte_eal: Reduce timer initialization time Thread-Index: AQHRI3FjD0VIEThTyU6nOuUdoRYWC56klOoAgAQ/1zA= Date: Mon, 23 Nov 2015 01:29:13 +0000 Message-ID: <8F6C2BD409508844A0EFC19955BE094183532F@SHSMSX152.ccr.corp.intel.com> References: <1447984428-137897-1-git-send-email-zhihong.wang@intel.com> <1447984428-137897-2-git-send-email-zhihong.wang@intel.com> <20151120083150.357ef17c@xeon-e3> In-Reply-To: <20151120083150.357ef17c@xeon-e3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH RFC v2 1/2] lib/librte_eal: Reduce timer initialization time X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2015 01:29:20 -0000 > -----Original Message----- > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > Sent: Saturday, November 21, 2015 12:32 AM > To: Wang, Zhihong > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH RFC v2 1/2] lib/librte_eal: Reduce timer > initialization time >=20 > On Thu, 19 Nov 2015 20:53:47 -0500 > Zhihong Wang wrote: >=20 > > + struct timespec sleeptime =3D {.tv_nsec =3D 1E8 }; /* 1/10 second */ >=20 > Why not NSEC_PER_SEC / 10 Yes, it looks better using macro :)