From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 87BF1903 for ; Wed, 11 Feb 2015 07:25:45 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 10 Feb 2015 22:21:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,556,1418112000"; d="scan'208";a="664686279" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by fmsmga001.fm.intel.com with ESMTP; 10 Feb 2015 22:25:42 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by KMSMSX151.gar.corp.intel.com (172.21.73.86) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 11 Feb 2015 14:25:36 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.62]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.192]) with mapi id 14.03.0195.001; Wed, 11 Feb 2015 14:25:35 +0800 From: "Liang, Cunming" To: Olivier MATZ , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v4 17/17] timer: add support to non-EAL thread Thread-Index: AQHQPox2SmnU4jzOSkySv+HcVGBV/5zpr3MAgAEf7/A= Date: Wed, 11 Feb 2015 06:25:34 +0000 Message-ID: References: <1422491072-5114-1-git-send-email-cunming.liang@intel.com> <1422842559-13617-1-git-send-email-cunming.liang@intel.com> <1422842559-13617-18-git-send-email-cunming.liang@intel.com> <54DA43AC.2030108@6wind.com> In-Reply-To: <54DA43AC.2030108@6wind.com> Accept-Language: zh-CN, 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="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4 17/17] 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: Wed, 11 Feb 2015 06:25:46 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogT2xpdmllciBNQVRaIFtt YWlsdG86b2xpdmllci5tYXR6QDZ3aW5kLmNvbV0NCj4gU2VudDogV2VkbmVzZGF5LCBGZWJydWFy eSAxMSwgMjAxNSAxOjQ1IEFNDQo+IFRvOiBMaWFuZywgQ3VubWluZzsgZGV2QGRwZGsub3JnDQo+ IFN1YmplY3Q6IFJlOiBbZHBkay1kZXZdIFtQQVRDSCB2NCAxNy8xN10gdGltZXI6IGFkZCBzdXBw b3J0IHRvIG5vbi1FQUwgdGhyZWFkDQo+IA0KPiBIaSwNCj4gDQo+IE9uIDAyLzAyLzIwMTUgMDM6 MDIgQU0sIEN1bm1pbmcgTGlhbmcgd3JvdGU6DQo+ID4gQWxsb3cgdG8gc2V0dXAgdGltZXJzIG9u bHkgZm9yIEVBTCAobGNvcmUpIHRocmVhZHMgKF9fbGNvcmVfaWQgPA0KPiBNQVhfTENPUkVfSUQp Lg0KPiA+IEUuZy4g4oCTIGR5bmFtaWNhbGx5IGNyZWF0ZWQgdGhyZWFkIHdpbGwgYmUgYWJsZSB0 byByZXNldC9zdG9wIHRpbWVyIGZvciBsY29yZQ0KPiB0aHJlYWQsDQo+ID4gYnV0IGl0IHdpbGwg YmUgbm90IGFsbG93ZWQgdG8gc2V0dXAgdGltZXIgZm9yIGl0c2VsZiBvciBhbm90aGVyIG5vbi1s Y29yZSB0aHJlYWQuDQo+ID4gcnRlX3RpbWVyX21hbmFnZSgpIGZvciBub24tbGNvcmUgdGhyZWFk IHdvdWxkIHNpbXBseSBkbyBub3RoaW5nIGFuZCByZXR1cm4NCj4gc3RyYWlnaHR3YXkuDQo+ID4N Cj4gPiBTaWduZWQtb2ZmLWJ5OiBDdW5taW5nIExpYW5nIDxjdW5taW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