From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id DBB549A8D for ; Thu, 12 Feb 2015 14:54:15 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 12 Feb 2015 05:47:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,565,1418112000"; d="scan'208";a="684770160" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by orsmga002.jf.intel.com with ESMTP; 12 Feb 2015 05:54:13 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.81]) by IRSMSX154.ger.corp.intel.com ([169.254.12.111]) with mapi id 14.03.0195.001; Thu, 12 Feb 2015 13:54:11 +0000 From: "Ananyev, Konstantin" To: "Liang, Cunming" , "dev@dpdk.org" Thread-Topic: [PATCH v5 19/19] timer: add support to non-EAL thread Thread-Index: AQHQRpxnL6GUUstmBke9xgyK/P88L5ztBqog Date: Thu, 12 Feb 2015 13:54:11 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258213E5585@irsmsx105.ger.corp.intel.com> References: <1422842559-13617-1-git-send-email-cunming.liang@intel.com> <1423728996-3004-1-git-send-email-cunming.liang@intel.com> <1423728996-3004-20-git-send-email-cunming.liang@intel.com> In-Reply-To: <1423728996-3004-20-git-send-email-cunming.liang@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v5 19/19] timer: add support to non-EAL thread 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: Thu, 12 Feb 2015 13:54:16 -0000 SGkgbGFk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