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 401F89AC9 for ; Fri, 13 Feb 2015 01:55:57 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 12 Feb 2015 16:48:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,567,1418112000"; d="scan'208";a="685067428" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by orsmga002.jf.intel.com with ESMTP; 12 Feb 2015 16:55:35 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.110.15) by KMSMSX152.gar.corp.intel.com (172.21.73.87) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 13 Feb 2015 08:55:33 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.62]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.161]) with mapi id 14.03.0195.001; Fri, 13 Feb 2015 08:55:32 +0800 From: "Liang, Cunming" To: "Ananyev, Konstantin" , "dev@dpdk.org" Thread-Topic: [PATCH v5 19/19] timer: add support to non-EAL thread Thread-Index: AQHQRpxkNnmkXCBzF0W0cFnRCMaCMZzsg2yAgAE9pKA= Date: Fri, 13 Feb 2015 00:55:32 +0000 Message-ID: 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> <2601191342CEEE43887BDE71AB977258213E5585@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB977258213E5585@irsmsx105.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 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: Fri, 13 Feb 2015 00:55:58 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5hbnlldiwgS29uc3Rh bnRpbg0KPiBTZW50OiBUaHVyc2RheSwgRmVicnVhcnkgMTIsIDIwMTUgOTo1NCBQTQ0KPiBUbzog TGlhbmcsIEN1bm1pbmc7IGRldkBkcGRrLm9yZw0KPiBDYzogb2xpdmllci5tYXR6QDZ3aW5kLmNv bQ0KPiBTdWJqZWN0OiBSRTogW1BBVENIIHY1IDE5LzE5XSB0aW1lcjogYWRkIHN1cHBvcnQgdG8g bm9uLUVBTCB0aHJlYWQNCj4gDQo+IEhpIGxhZHMsDQo+IA0KPiA+IC0tLS0tT3JpZ2luYWwgTWVz c2FnZS0tLS0tDQo+ID4gRnJvbTogTGlhbmcsIEN1bm1pbmcNCj4gPiBTZW50OiBUaHVyc2RheSwg RmVicnVhcnkgMTIsIDIwMTUgODoxNyBBTQ0KPiA+IFRvOiBkZXZAZHBkay5vcmcNCj4gPiBDYzog QW5hbnlldiwgS29uc3RhbnRpbjsgb2xpdmllci5tYXR6QDZ3aW5kLmNvbTsgTGlhbmcsIEN1bm1p bmcNCj4gPiBTdWJqZWN0OiBbUEFUQ0ggdjUgMTkvMTldIHRpbWVyOiBhZGQgc3VwcG9ydCB0byBu b24tRUFMIHRocmVhZA0KPiA+DQo+ID4gQWxsb3cgdG8gc2V0dXAgdGltZXJzIG9ubHkgZm9yIEVB TCAobGNvcmUpIHRocmVhZHMgKF9fbGNvcmVfaWQgPA0KPiBNQVhfTENPUkVfSUQpLg0KPiA+IEUu Zy4g4oCTIGR5bmFtaWNhbGx5IGNyZWF0ZWQgdGhyZWFkIHdpbGwgYmUgYWJsZSB0byByZXNldC9z dG9wIHR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