From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id C6FDE5934 for ; Thu, 22 Jan 2015 13:32:50 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 22 Jan 2015 04:32:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,448,1418112000"; d="scan'208";a="654843153" Received: from pgsmsx105.gar.corp.intel.com ([10.221.44.96]) by fmsmga001.fm.intel.com with ESMTP; 22 Jan 2015 04:32:47 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX105.gar.corp.intel.com (10.221.44.96) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 22 Jan 2015 20:32:46 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.238]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.92]) with mapi id 14.03.0195.001; Thu, 22 Jan 2015 20:32:44 +0800 From: "Liang, Cunming" To: "Walukiewicz, Miroslaw" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1 15/15] timer: add support to non-EAL thread Thread-Index: AQHQNhvuRtrxLADkfkKTnRx/A7YGYJzLYZcAgACt9BA= Date: Thu, 22 Jan 2015 12:32:44 +0000 Message-ID: References: <1417589628-43666-1-git-send-email-cunming.liang@intel.com> <1421914598-2747-1-git-send-email-cunming.liang@intel.com> <1421914598-2747-16-git-send-email-cunming.liang@intel.com> <7C4248CAE043B144B1CD242D275626532FE3BF0A@IRSMSX104.ger.corp.intel.com> In-Reply-To: <7C4248CAE043B144B1CD242D275626532FE3BF0A@IRSMSX104.ger.corp.intel.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 v1 15/15] 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, 22 Jan 2015 12:32:51 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV2FsdWtpZXdpY3osIE1p cm9zbGF3DQo+IFNlbnQ6IFRodXJzZGF5LCBKYW51YXJ5IDIyLCAyMDE1IDU6NTggUE0NCj4gVG86 IExpYW5nLCBDdW5taW5nOyBkZXZAZHBkay5vcmcNCj4gU3ViamVjdDogUkU6IFtkcGRrLWRldl0g W1BBVENIIHYxIDE1LzE1XSB0aW1lcjogYWRkIHN1cHBvcnQgdG8gbm9uLUVBTCB0aHJlYWQNCj4g DQo+IA0KPiANCj4gPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiA+IEZyb206IGRldiBb bWFpbHRvOmRldi1ib3VuY2VzQGRwZGsub3JnXSBPbiBCZWhhbGYgT2YgQ3VubWluZyBMaWFuZw0K PiA+IFNlbnQ6IFRodXJzZGF5LCBKYW51YXJ5IDIyLCAyMDE1IDk6MTcgQU0NCj4gPiBUbzogZGV2 QGRwZGsub3JnDQo+ID4gU3ViamVjdDogW2RwZGstZGV2XSBbUEFUQ0ggdjEgMTUvMTVdIHRpbWVy OiBhZGQgc3VwcG9ydCB0byBub24tRUFMIHRocmVhZA0KPiA+DQo+ID4gQWxsb3cgdG8gc2V0dXAg dGltZXJzIG9ubHkgZm9yIEVBTCAobGNvcmUpIHRocmVhZHMgKF9fbGNvcmVfaWQgPA0KPiA+IE1B WF9MQ09SRV9JRCkuDQo+ID4gRS5nLiDigJMgZHluYW1pY2FsbHkgY3JlYXRlZCB0aHJlYWQgd2ls bCBiZSBhYmxlIHRvIHJlc2V0L3N0b3AgdGltZXIgZm9yIGxjb3JlDQo+ID4gdGh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