From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2] introduce and use relaxed cpumask bitops Date: Wed, 18 Feb 2015 12:48:45 +0000 Message-ID: <1424263725.27775.46.camel@citrix.com> References: <54DB6A52020000780005F0DF@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YO43n-0006ZN-4H for xen-devel@lists.xenproject.org; Wed, 18 Feb 2015 12:48:59 +0000 In-Reply-To: <54DB6A52020000780005F0DF@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , George Dunlap , Ian Jackson , Tim Deegan , Andrew Cooper , xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, 2015-02-11 at 13:42 +0000, Jan Beulich wrote: > Using atomic (LOCKed on x86) bitops for certain of the operations on > cpumask_t is overkill when the variables aren't concurrently accessible > (e.g. local function variables, or due to explicit locking). Introduce > alternatives using non-atomic bitops and use them where appropriate. > > Note that this > - adds a volatile qualifier to cpumask_test_and_{clear,set}_cpu() > (should have been there from the beginning, like is the case for > cpumask_{clear,set}_cpu()) > - replaces several cpumask_clear()+cpumask_set_cpu(, n) pairs by the > simpler cpumask_copy(, cpumask_of(n)) (or just cpumask_of(n) if we > can do without copying) > > Signed-off-by: Jan Beulich > Acked-by: George Dunlap AIUI there is no need for any arm changes (you reuse the existing __clear_bit etc), so: Acked-by: Ian Campbell I suppose at some point we might want to switch xen/arch/arm to use the relaxed ops where appropriate, but no need for you to worry about that. Ian