Search Linux Wireless

Re: [RFC v4 3/8] mac80211: use static keys for hw flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2015-11-13 at 11:22 -0500, Steven Rostedt wrote:

> This sure could use a comment.
> 
>  on = 0, off = 0,  -1 + (0^0) * (1 + 0) = -1
>  on = 0, off = 1,  -1 + (0^1) * (1 + 0) = 0
>  on = 1, off = 0,  -1 + (1^0) * (1 + 1) = 1
>  on = 1, off = 1,  -1 + (1^1) * (1 + 1) = -1
> 
> The I would also state:
> 
>   -1 means to simply use if logic (no jump labels/static keys)
>    0 means to use jump label to off
>    1 means to use jump label to on

Yeah, fair enough :)

FWIW, I changed my mind and redid all of this without the jump labels,
just actually eliding the code completely if possible. I've put it in
the hwflags-elide branch in my mac80211-next tree:
https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211-next.git/log/?h=hwflags-elide

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux