From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by dpdk.org (Postfix) with ESMTP id BA8303979 for ; Fri, 20 Nov 2015 17:31:38 +0100 (CET) Received: by pacdm15 with SMTP id dm15so120924938pac.3 for ; Fri, 20 Nov 2015 08:31:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=f1WlG763IEGAxkbF+cicSF9lFQJtK+bof/3wIi29gpM=; b=aXHRSAIrzBFb4gnm3jrUGSd1n1tdyQs374PT03ATlqsnmrNLuUv4lJFiDsqM+EAnl+ fk2QvAZCv/DUSDt8RdHnhLXNOoFMfZcSZitq97lA2t3InRYn+FMfWauiQwKfBq0dawS7 Qm70WYw2kIxf4/+ILHpn3IHXgvL+XfWQk3c8geNj2fIa056q/c23svITnUhCo4108eoa A+JjCQufiVxTRNL/BFnv7JhHHeGt3jGfDDkIPRRSaTgPyQ/TCL5qrzO3WE9Q0HBwDwrg m1cqv8QUbQR00f5TBG5gaGVDpEK2TarhrnMSkZnpegbDTuoRbGEAQaQA0DU9BN9kDJl8 3iCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=f1WlG763IEGAxkbF+cicSF9lFQJtK+bof/3wIi29gpM=; b=Qo/4gtg0xzh/KpDc0dcYYsV8sP8a5xrSsPEgdFh5HdE2tC06Crtxq1lDO0W4sz72f/ /Ob9pOjVrejdlH+r3GPZigu0A6jXtqVUYy7OPuVtE0nmL6vE3vHCW8xtN4hhc5Fc2+Ki 9LTaCZinMcPiNpTWk+jNGiXr1in36geupkmNmcnTjDBqRoq6h3ylMxhg36Z3zUZ1mqoz bNT0Jz4GyyoQ2Gvq306QJSHRIGOUqDTCaaiS1LDyqwFzMdoQ938gBrRs0KDmAUjOgpt3 MIj8IzGDxjOyJlRIcM8iJH1rhU57bQ5/ehQHrqfE6eaEK2HqWdlzMK7Iuz4bqbDSS503 c53A== X-Gm-Message-State: ALoCoQl3cn77GXK+QtFIYL14IMzXIc+8ziZVpcELl6TtaUMy9i9GT/xMC2dy+IKZc/B7ly+huRKW X-Received: by 10.66.141.73 with SMTP id rm9mr20576101pab.96.1448037098007; Fri, 20 Nov 2015 08:31:38 -0800 (PST) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id hw7sm291420pac.12.2015.11.20.08.31.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Nov 2015 08:31:37 -0800 (PST) Date: Fri, 20 Nov 2015 08:31:50 -0800 From: Stephen Hemminger To: Zhihong Wang Message-ID: <20151120083150.357ef17c@xeon-e3> In-Reply-To: <1447984428-137897-2-git-send-email-zhihong.wang@intel.com> References: <1447984428-137897-1-git-send-email-zhihong.wang@intel.com> <1447984428-137897-2-git-send-email-zhihong.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Fri, 20 Nov 2015 16:31:39 -0000 On Thu, 19 Nov 2015 20:53:47 -0500 Zhihong Wang wrote: > + struct timespec sleeptime = {.tv_nsec = 1E8 }; /* 1/10 second */ Why not NSEC_PER_SEC / 10