Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1048413rdh; Fri, 24 Nov 2023 04:17:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzmtcf2Whpqqg7LLnllzhKePdnoeF9VbZe0LSQaln03OLwDUyUzyySuHqMJI7j2koTgXoo X-Received: by 2002:a05:6a20:1587:b0:189:c987:76c5 with SMTP id h7-20020a056a20158700b00189c98776c5mr3459339pzj.43.1700828255786; Fri, 24 Nov 2023 04:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700828255; cv=none; d=google.com; s=arc-20160816; b=ycxFyuvVin7b58xre9VOp5x+XyIz84iUsfxDASmAUx+HzQcDCSDSCVWhW39nGVXtV4 VCTt1z43tRu/5XC9LoHFyZJeD+piLNqWnJveOek4OZaJpYCYHtAw1VrV3CQlWQA9O2dt oMEymM3d6z55wtzYeFgma1gpYYhSPxQP5N/d4FE3ceRFMUGtNrRiI0k/y/drOI8cWiMl 8KOeDAXd6VQMwY8S9TCMuAurI7QtDIgrDLuSH8Xkbvf4hID45xwQkUZDtjiQdNqbSB11 0NBcO4SYL8kiBsZ48LE47oOzVMf9/uxSMAcPkMM3U36ApJXFmkC/WhwUF7So4MBuWuJe vAjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=c+6fJVvRrftANTG8czSPerumsaK2Oz452W43u1cp2A4=; fh=uG10cGdrsXsTonOMXtnv/dbNqtCsY6PqBo0ptsEtKX0=; b=CGg0aolVVsagUq7moCaNWdq/jRgrs6XlbbyCzimP7KyhUAwIXuj3zDN66dtQh79RJP wrjg0YmDFR9Gn5a0s1hcNnNBqb2BztMubd2ojsHqw4MWlBuP9qmrjTjlJuU0zH9Wd8a5 y4NmfjPkujldCAglaegeJweeOgeQ8BSvbU6zvou3bg4ZLyMl6E7hVY8R4/8xdB8MKYNG pUEkDVUEQduziTdRGRFi4+fpo8tl38h58kEdwhejGqXSGrkXbINZ9tV2pZrTW4y8vjfZ MxuQYwEW1joNqFpi+4kXhiogokackyOVEykrobjVo5PiEYRzTkJ/vXgDoSdoYr+nKSzr NbNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k8eTrReb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f11-20020a056a00238b00b0068a85532963si3456680pfc.160.2023.11.24.04.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 04:17:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k8eTrReb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 68C028082842; Fri, 24 Nov 2023 04:16:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345046AbjKXMPu (ORCPT + 99 others); Fri, 24 Nov 2023 07:15:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbjKXMPs (ORCPT ); Fri, 24 Nov 2023 07:15:48 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F043CD41 for ; Fri, 24 Nov 2023 04:15:54 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BAE8C433C7; Fri, 24 Nov 2023 12:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700828154; bh=xWJDM89s7PEji+2SZq/p+Vm/gSZqz0iXR9i8e95E0SE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k8eTrReb+GVfr8lTv7ZL31nlMfW3VZ77M7/wAcKveA5oin3ne8kb4VF7oCW+sxGU2 KF0LPPf3s5dG5n4lCaLVcxuaecJEPIUERJKOZb+1OSTA2xGYWEubHkbtwPThKVcy9q cjcKRI5sVDxPlcKuCySoFWl4e8rf3IqLoa7Sm1xmqQ99ZD0VPRyWwBwbc6H+ilAXWH vaDlqG9PFmt4gJRMw22EVT7pj2pYahuxR03B3LQOFN/4kz4IxHX51aewxUbGLMOjmM qPgcJ4NRHmq9B1yr5IQFnQpCtosEzdmOXXykZ9Zg81cb3hRjx0kvKrxsVt/rrxIqLt zr+XkZDwIroiw== Date: Fri, 24 Nov 2023 17:45:50 +0530 From: Vinod Koul To: Yury Norov Cc: linux-kernel@vger.kernel.org, Fenghua Yu , Dave Jiang , dmaengine@vger.kernel.org, Jan Kara , Mirsad Todorovac , Matthew Wilcox , Rasmus Villemoes , Andy Shevchenko , Maxim Kuvyrkov , Alexey Klimov Subject: Re: [PATCH 09/34] dmaengine: idxd: optimize perfmon_assign_event() Message-ID: References: <20231118155105.25678-1-yury.norov@gmail.com> <20231118155105.25678-10-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231118155105.25678-10-yury.norov@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 24 Nov 2023 04:16:11 -0800 (PST) On 18-11-23, 07:50, Yury Norov wrote: > The function searches used_mask for a set bit in a for-loop bit by bit. > We can do it faster by using atomic find_and_set_bit(). Acked-by: Vinod Koul -- ~Vinod