From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal/bsd: query the cpu count only once Date: Mon, 27 Mar 2017 23:51:29 +0200 Message-ID: <1673950.bGzrNzyUOr@xps13> References: <20170323150958.17089-1-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by dpdk.org (Postfix) with ESMTP id D72F6101B for ; Mon, 27 Mar 2017 23:51:33 +0200 (CEST) Received: by mail-wr0-f169.google.com with SMTP id l43so76808082wre.1 for ; Mon, 27 Mar 2017 14:51:33 -0700 (PDT) In-Reply-To: <20170323150958.17089-1-bruce.richardson@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-03-23 15:09, Bruce Richardson: > Rather than querying the number of CPUs on the system multiple times, and > printing out the number each time, just query the value from sysctl once > and store it for future reuse. > > Signed-off-by: Bruce Richardson Applied, thanks