Return-path: Received: from mail-ew0-f214.google.com ([209.85.219.214]:46765 "EHLO mail-ew0-f214.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751501AbZGaTwo convert rfc822-to-8bit (ORCPT ); Fri, 31 Jul 2009 15:52:44 -0400 Received: by ewy10 with SMTP id 10so1762108ewy.37 for ; Fri, 31 Jul 2009 12:52:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20090731181020.GE7963@makis> <43e72e890907311115h56df6ac0p1ea7165e305a10ee@mail.gmail.com> <40f31dec0907311125o1654bd23jee861ba8bea57611@mail.gmail.com> Date: Fri, 31 Jul 2009 22:52:42 +0300 Message-ID: <40f31dec0907311252n76adfde7kb9f34bf8c6baf34c@mail.gmail.com> Subject: Re: [ath5k-devel] [PATCH 4/4] ath5k: Use SWI to trigger calibration From: Nick Kossifidis To: Bob Copeland Cc: "Luis R. Rodriguez" , ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org, linville@tuxdriver.com, jirislaby@gmail.com, nbd@openwrt.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: 2009/7/31 Bob Copeland : > On Fri, Jul 31, 2009 at 2:25 PM, Nick Kossifidis wrote: >>    Also we don't need to run calibration if we are idle (no interrupts). > > I think this is the big win right now... > >> c) Having calibration on a tasklet is better since during calibration >>    we can't transmit or receive (antennas are detached to measure >>    noise floor), previously calibration could run in parallel with tx/rx >>    and interfere (packet loss). > > This can still happen, no?  Two tasklets can run in parallel on > different processors, as long as they are different tasklets. > > In practice, this won't happen much because tasklets run on the > cpu that scheduled them, and irq affinity is such (at least on my > hardware) that it's almost always the same CPU.  But I think to > make the above true it needs to stop the queues etc when doing > calibration. > ACK, how do we do that ? ieee80211_stop_queues / ieee80211_wake_queues > Also we are missing tasklet_kill()? > Yup, resending... -- GPG ID: 0xD21DB2DB As you read this post global entropy rises. Have Fun ;-) Nick