Return-path: Received: from mga09.intel.com ([134.134.136.24]:55544 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751995AbYKXCtf (ORCPT ); Sun, 23 Nov 2008 21:49:35 -0500 From: "Xu, Martin" To: Bob Copeland , "John W. Linville" CC: Nick Kossifidis , "Luis R. Rodriguez" , linux-wireless , "yang.y.yi@gmail.com" , Vikram Kandukuri , Jothikumar Mothilal , "ath5k-devel@lists.ath5k.org" Date: Mon, 24 Nov 2008 10:49:27 +0800 Subject: RE: [ath5k-devel] [Bug 11749] Ath5k driver has too many interrupts per second at idle Message-ID: <9F0C1DB20AFA954FA1DA05309350433D4125B42A@pdsmsx503.ccr.corp.intel.com> (sfid-20081124_034944_208145_3DDF647E) References: <20081013150525.884BC108058@picon.linux-foundation.org> <43e72e890810131206u75fd68e8p5416d7456ff44097@mail.gmail.com> <40f31dec0810131214j1709534fl2a95bb844d08513b@mail.gmail.com> <9F0C1DB20AFA954FA1DA05309350433D41083496@pdsmsx503.ccr.corp.intel.com> <9F0C1DB20AFA954FA1DA05309350433D410CD777@pdsmsx503.ccr.corp.intel.com> <20081117133737.GA16412@hash.localnet> <9F0C1DB20AFA954FA1DA05309350433D41183AB4@pdsmsx503.ccr.corp.intel.com> <20081121202734.GC3540@tuxdriver.com> <20081123222735.GB30249@hash.localnet> In-Reply-To: <20081123222735.GB30249@hash.localnet> Content-Type: text/plain; charset="gb2312" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Qm9iOg0KWW91IGFyZSByaWdodCwgdGhlIGJzc19pbmZvcl9jaGFuZ2VkIGlzIGxvc3Qgb24gdGhl IHdheS4NClBsZWFzZSByZXZpZXcgYmVsb3cgcGF0Y2g6DQoNCkZyb206IE1hcnRpbiBYdSA8bWFy dGluLnh1QGludGVsLmNvbT4NClN1YmplY3Q6IGRpc2FibGUgYmVhY29uIGZpbHRlciB3aGVuIHN0 YXRpb24gaXMgbm90IGFzc29jaWF0ZWQ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