Return-path: Received: from mga09.intel.com ([134.134.136.24]:36225 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754426AbYKQHfd (ORCPT ); Mon, 17 Nov 2008 02:35:33 -0500 From: "Xu, Martin" To: Bob Copeland CC: Nick Kossifidis , "Luis R. Rodriguez" , linux-wireless , "yang.y.yi@gmail.com" , Vikram Kandukuri , Jothikumar Mothilal , "ath5k-devel@lists.ath5k.org" , "Liu, Bing Wei" , "Selbak, Rolla N" , "Wang, Yong Y" Date: Mon, 17 Nov 2008 15:35:07 +0800 Subject: RE: [ath5k-devel] [Bug 11749] Ath5k driver has too many interrupts per second at idle Message-ID: <9F0C1DB20AFA954FA1DA05309350433D410CD777@pdsmsx503.ccr.corp.intel.com> (sfid-20081117_083542_366995_20B69D6E) References: <20081013150525.884BC108058@picon.linux-foundation.org> <43e72e890810131206u75fd68e8p5416d7456ff44097@mail.gmail.com> <40f31dec0810131214j1709534fl2a95bb844d08513b@mail.gmail.com> <9F0C1DB20AFA954FA1DA05309350433D41083496@pdsmsx503.ccr.corp.intel.com> In-Reply-To: Content-Type: text/plain; charset="gb2312" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: SGkgYm9io7oNClBsZWFzZSByZXZpZXcgYmVsb3cgcGF0Y2ggd2hpY2ggaGFzIGJlZW4gbW9kaWZp ZWQgYWNjb3JkaW5nIHRvIHlvdXIgY29tbWVudHMuDQoNCg0KRnJvbTogTWFydGluIFh1IDxtYXJ0 aW4ueHVAaW50ZWwuY29tPg0KU3ViamVjdDogZGlzYWJsZSBiZWFjb24gZmlsdGVyIHdoZW4gc3Rh dGlvbiBpcyBub3QgYXNzb2NpYXRlZCB3aXRoIGFueSBBUC4NCg0KQXRoNWsgZHJpdmVyIGhhcyB0 b28gbWFueSBpbnRlcnJ1cHRzIHBlciBzZWNvbmQgYXQgaWRsZQ0KaHR0cDovL2J1Z3ppbGxhLmtl cm5lbC5vcmcvc2hvd19idWc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