[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190304133017.GL32494@hirez.programming.kicks-ass.net>
Date: Mon, 4 Mar 2019 14:30:17 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: Fenghua Yu <fenghua.yu@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
H Peter Anvin <hpa@...or.com>,
Dave Hansen <dave.hansen@...el.com>,
Ashok Raj <ashok.raj@...el.com>,
Ravi V Shankar <ravi.v.shankar@...el.com>,
Xiaoyao Li <xiaoyao.li@...el.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
x86 <x86@...nel.org>, kvm@...r.kernel.org
Subject: Re: [PATCH v4 03/17] wlcore: Align reg_ch_conf_pending and
tmp_ch_bitmap to unsigned long for better performance
On Mon, Mar 04, 2019 at 02:09:30PM +0100, Paolo Bonzini wrote:
> >> @@ -1700,14 +1700,14 @@ void wlcore_set_pending_regdomain_ch(struct wl1271 *wl, u16 channel,
> >> ch_bit_idx = wlcore_get_reg_conf_ch_idx(band, channel);
> >>
> >> if (ch_bit_idx >= 0 && ch_bit_idx <= WL1271_MAX_CHANNELS)
> >> - set_bit(ch_bit_idx, (long *)wl->reg_ch_conf_pending);
> >> + __set_bit_le(ch_bit_idx, (long *)wl->reg_ch_conf_pending);
> >> }
> >>
> I've used __set_bit_le when setting reg_ch_conf_pending so no need to
> swizzle here;
Argh, reading hard. Yes, then it all works.
Powered by blists - more mailing lists