Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2461672imb; Mon, 4 Mar 2019 05:53:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwLW5BD8Cucl4bG3ruVelJcGzH+Nf6I1M9yuhpA5lZQaLz3isXgAV7evCxSY/ttjmakDtF4 X-Received: by 2002:a17:902:7b8d:: with SMTP id w13mr3674864pll.129.1551707628737; Mon, 04 Mar 2019 05:53:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551707628; cv=none; d=google.com; s=arc-20160816; b=S9dfg8rJ7+1c6Y0q3UVlhsl25VmGM8js/zvatwEduvNrjHPiA6l2v60gGRYLHGOtt+ 3P3S2svIDtbPASbbDgBSvoCAlP5JBsfMD4MMftfYG0bwSJbIx8+kVyzewdxdKjDGr72A MoMktWG6dxV9yh4wfeQqXgI5hSz7F5BXeq5Hh0NFKnfn3HmuQTqSwXIjuh5UMjYYk+nQ 2Qup0DqvU7r48gWwZR7Mnu3dCi2iu11YGc+NkvIRgblP3A+LpB0rZAWzKiR54e2qOjn/ nnLVh9sgLy8y98eXjO92N5B262ZdyasDbK5XhuyBDpF/jcr8ZED1TKBe4yWa23GQAxFU NM+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4Kexjl1k6PZPYNe5SHNgTgQ2hSlzXFF2EFdO4Ud1AhI=; b=YkhuFEU1xYkK8TvFXRGY++NCero1jGtex6MU064xWHOkOg8vLUlv47u0z6j9COyoad DE/xj3FCUfX8nB+XPXj3bS4SpVb6BBxZmaCH9yHiCbPunkPJLT60sGZ3yDSPgESMiCLq 9ckfeZ81Hms6f6u12HnZ8RGoSDi31W56G5jVnToXRT2wZq+NDj9O+Nv/O0ej8upZ3Sdq 7/JgMRzZnigHrmginJkL5rW9uDf8EX+Ygnuk8nB7wK8o4aHQiI4svwjeGAml0Mr9Z7Nv U/JCjzg8qdRda512rnYnxtnKjkRPMSOeDBoGGEyHoxRhOnnKMtGIDkr6K341KiOhE5p4 bVCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=0JuiA1vV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si1658779plq.16.2019.03.04.05.53.33; Mon, 04 Mar 2019 05:53:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=0JuiA1vV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726807AbfCDNa3 (ORCPT + 99 others); Mon, 4 Mar 2019 08:30:29 -0500 Received: from merlin.infradead.org ([205.233.59.134]:44370 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbfCDNa3 (ORCPT ); Mon, 4 Mar 2019 08:30:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4Kexjl1k6PZPYNe5SHNgTgQ2hSlzXFF2EFdO4Ud1AhI=; b=0JuiA1vVot91FzsO+UtGPEDJw v6YDZa2pjESkgKpjp8RLxMFzBSdSm4j0AiLWNE3oXWfCikvUpL3evjQ3MREAL6o096IdHSQWyJn1s 7+rXvDppD1xHX7H7Lt4+x5aZcEkZ9US06blut+Kth9pYyKESERL5lr/2tGLqgE1Q0Fufyd1WjJEw9 y8If6CSdprZ2MXhpk35lmKqaRo/hcEc+ni/7TGdndVlqkONVCDJZjWosKz5L+vxqWQm92H2M7D1pA KHTk+aJgfo29/5oVAEUgmjbh4Hi7FeinrOmwS8gm7nMabkqwwHha2oK35BeVyvDy0ksVNrAhgapjy +TjVwR3AA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0nff-0004ip-45; Mon, 04 Mar 2019 13:30:19 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5B8892029D8D6; Mon, 4 Mar 2019 14:30:17 +0100 (CET) Date: Mon, 4 Mar 2019 14:30:17 +0100 From: Peter Zijlstra To: Paolo Bonzini Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Dave Hansen , Ashok Raj , Ravi V Shankar , Xiaoyao Li , linux-kernel , x86 , kvm@vger.kernel.org Subject: Re: [PATCH v4 03/17] wlcore: Align reg_ch_conf_pending and tmp_ch_bitmap to unsigned long for better performance Message-ID: <20190304133017.GL32494@hirez.programming.kicks-ass.net> References: <1551494711-213533-1-git-send-email-fenghua.yu@intel.com> <1551494711-213533-4-git-send-email-fenghua.yu@intel.com> <20190304101141.GB32477@hirez.programming.kicks-ass.net> <44bb6771-7aea-c44d-6605-45e7a1499d1b@redhat.com> <20190304124144.GD32477@hirez.programming.kicks-ass.net> <9f334d1e-491f-565e-02fc-1a769e4f1b79@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9f334d1e-491f-565e-02fc-1a769e4f1b79@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.