linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Peter Zijlstra <peterz@infradead.org>
Cc: linux-wireless@vger.kernel.org, Jason Baron <jbaron@akamai.com>,
	Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [RFC 0/4] mac80211: jump labels for hw flags
Date: Tue, 10 Nov 2015 08:43:44 +0100	[thread overview]
Message-ID: <1447141424.2421.1.camel@sipsolutions.net> (raw)
In-Reply-To: <20151109224259.GP17308@twins.programming.kicks-ass.net>

On Mon, 2015-11-09 at 23:42 +0100, Peter Zijlstra wrote:
> On Mon, Nov 09, 2015 at 11:02:33PM +0100, Johannes Berg wrote:
> > As far as the code is concerned, there are two really ugly things:
> >  1) I still use struct static_key - couldn't quite figure it out
> >     with static_key_false. I think I can replace it easily though.
> 
> Yeah, didn't see anything that would avoid using struct
> static_key_false. Was there anything specific that was difficult?

No, I think I just needed to wrap my head around the _ON and _OFF
semantics. I had originally thought I needed both _true and _false
static keys.

> >  2) There are a lot of boilerplate ifdefs/macros.
> 
> I'm sure we can reduce that a lot with some CPP trickery, lots of
> that looked like endless repetition of the same pattern.

Oh, it is, and I even generated it that way. I just haven't quite
figured out how to do that since you can't put an #if into a macro
expansion. Perhaps some tricks with the optimiser "if (0 && ..." or so.
I'll play with it.

For now though I think we need to figure out if we want this at all :)

johannes

      reply	other threads:[~2015-11-10  7:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-09 22:02 [RFC 0/4] mac80211: jump labels for hw flags Johannes Berg
2015-11-09 22:02 ` [RFC 1/4] mac80211: add ieee80211_hw_clear() Johannes Berg
2015-11-09 22:02 ` [RFC 2/4] mac80211: introduce ieee80211_local_check() Johannes Berg
2015-11-09 22:02 ` [RFC 3/4] mac80211: use static keys for hw flags Johannes Berg
2015-11-09 22:02 ` [RFC 4/4] mac80211: test the static key code Johannes Berg
2015-11-09 22:42 ` [RFC 0/4] mac80211: jump labels for hw flags Peter Zijlstra
2015-11-10  7:43   ` Johannes Berg [this message]

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=1447141424.2421.1.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=jbaron@akamai.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    /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).