From: Johannes Berg <johannes@sipsolutions.net>
To: Marco Porsch <marco@cozybit.com>
Cc: mcgrof@qca.qualcomm.com, jouni@qca.qualcomm.com,
vthiagar@qca.qualcomm.com, senthilb@qca.qualcomm.com,
sleffler@google.com, linux-wireless@vger.kernel.org,
devel@lists.open80211s.org, ath9k-devel@lists.ath9k.org
Subject: Re: [PATCHv2 2/3] mac80211: mesh power save doze scheduling
Date: Tue, 26 Feb 2013 21:52:15 +0100 [thread overview]
Message-ID: <1361911935.8440.18.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <512B37BA.6060605@cozybit.com> (sfid-20130225_110654_178953_AA37B00E)
On Mon, 2013-02-25 at 11:06 +0100, Marco Porsch wrote:
> > This is strange, why bother with the else if there's a continue?
>
> I don't quite get this comment. The current logic is like this:
>
> if (unrelated cases) {
> continue;
> } else if (related and blocking) {
> allow = false;
> break;
> } else if (related, non-blocking and new minimum) {
> min = sta->nexttbtt;
> }
Yeah I guess I don't see why it's not just
if (unrelated cases)
continue;
if (related & blocking) {
allow = false;
break;
}
if (...)
min = ...
but it really doesn't matter much.
> >> + } else if (test_sta_flag(sta, WLAN_STA_MPS_WAIT_FOR_CAB) ||
> >> + test_sta_flag(sta, WLAN_STA_MPSP_OWNER) ||
> >> + test_sta_flag(sta, WLAN_STA_MPSP_RECIPIENT) ||
> >> + !timer_pending(&sta->nexttbtt_timer) ||
> >> + time_after(jiffies, sta->nexttbtt_jiffies)) {
> >
> > Are you sure jiffies are good enough? Some systems have HZ=33 or so I
> > think, which makes a jiffy like 30ms.
>
> Hm, jiffies is what I have available easily. Using the TSF would be
> obvious but may suffer from delay when obtaining it. Umm... hrtimers again?
I really don't care about your messed up timing stuff here, just
saying :)
johannes
next prev parent reply other threads:[~2013-02-26 20:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-18 16:08 [PATCHv2 1/3] mac80211: move mesh sync beacon handler into neighbour_update Marco Porsch
2013-02-18 16:08 ` [PATCHv2 2/3] mac80211: mesh power save doze scheduling Marco Porsch
2013-02-18 16:41 ` Christian Lamparter
2013-02-20 15:01 ` Johannes Berg
2013-02-25 10:06 ` Marco Porsch
2013-02-26 20:52 ` Johannes Berg [this message]
2013-02-18 16:08 ` [PATCHv2 3/3] ath9k: mesh powersave support Marco Porsch
2013-02-20 14:50 ` [PATCHv2 1/3] mac80211: move mesh sync beacon handler into neighbour_update Johannes Berg
2013-02-20 18:26 ` Thomas Pedersen
2013-02-20 20:00 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1361911935.8440.18.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=ath9k-devel@lists.ath9k.org \
--cc=devel@lists.open80211s.org \
--cc=jouni@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=marco@cozybit.com \
--cc=mcgrof@qca.qualcomm.com \
--cc=senthilb@qca.qualcomm.com \
--cc=sleffler@google.com \
--cc=vthiagar@qca.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).