From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH] xen/arm: minor improvement in smp_send_call_function_mask() Date: Thu, 21 Aug 2014 11:54:45 -0500 Message-ID: <53F62455.2030906@linaro.org> References: <1408423704-15059-1-git-send-email-anup.patel@linaro.org> <53F3BC41.5040409@linaro.org> <53F4B9B4.5090303@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Anup Patel Cc: Ian Campbell , Stefano Stabellini , patches , xen-devel , "stefano.stabellini" , Pranavkumar Sawargaonkar List-Id: xen-devel@lists.xenproject.org Hi Anup, On 21/08/14 06:04, Anup Patel wrote: >> The best alternative would be cpumask_empty. > > All three cpumask_empty(), cpumask_first(), and cpumask_weight() > are O(N) where N is number of bits in cpumask. > It really does not make much difference which of these operation > is chosen. Hmmm right. That the worst case for all, and always the case for cpumask_weight. Anyway... > Since empty target list is fine with GIC Distributor, I will drop the check. Assuming you only remove the check in the next version: Acked-by: Julien Grall Regards, -- Julien Grall