Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1387364rdb; Fri, 19 Jan 2024 19:04:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPl467klEQc3mT8kqF1juB6Ix0cQQgKLslu6LnDrEqIeFkoJcRpErq8mOc02EY8aUQ4uA9 X-Received: by 2002:a17:906:2547:b0:a2c:96a1:99ed with SMTP id j7-20020a170906254700b00a2c96a199edmr948569ejb.11.1705719843860; Fri, 19 Jan 2024 19:04:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705719843; cv=pass; d=google.com; s=arc-20160816; b=iY+Zg0d7Vza1+j8mcFbouwniwNIobGnVCNAYY+72ck3JRs3kxTw7nFE7XZqki0qgO4 vn87EGsCQKA6xSGCn/0LabdWV/vvW77XD+FZGeATzWMLDK5LR5K5VE5g7cdBTVFX+EkF Mttkk6rZFrEpQvU0elcgMprYE90kp9zv5c+Wi10WLQWW1rnc3Fq2icHpu4DM8odSRueK uPwG2RhOTT1jMsWTHZ32N/xhb2d9BtcEVdF+/VV39WPqH8zaal87qvyxqjxsqyXamBck +FvsTGWxBQLm9Qlqk/+5fCYfindcp9C6haz9DoEIZiJcNyzuHuYBU0hmOhrz3EetTxI5 pawg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YIF0KoiBNvuYIVD9snwLfREDKSNSJzQ8k5c9fKM2oaQ=; fh=GdfG0gHon7DeFTSqcX+hsxSE8+6MPTpCCgwjcmf7r/E=; b=k1j+T4kjSvRxyOQBil2IGoexe4a/+ACl19mJE18s/bpb4lEsNXxjp47i1MruiYvpzb A2112bGghNRd4TnEea4kjqYklZZC5sUjRYHLvHY4ulUSgzCL4sLrCyYVyZOAmA+p/1Mr c4XOSUlXR3+9LxI/KCUtQmkZcJdrnocUmHnCIUtaFyamRD1bCBEf68dsrDrJu0AeqK7u X2DlBDnBGVMUuy2oJIe9c/fTv97qO7/j2X2ZIULpeSsSdvTexwWvdPxqWMGjq4Pd3wzR 5WZ+wKmVToZmj+xWTEq12rrKwqQ9eZDwSMutbuYb1bcWYPfPRXhmIMFCy+b94KmZhyI9 JBDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XZ09yivC; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-31693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hb26-20020a170906b89a00b00a2d0a4feb13si6620703ejb.419.2024.01.19.19.04.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 19:04:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XZ09yivC; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-31693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 56CBB1F2292E for ; Sat, 20 Jan 2024 03:04:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A072410E8; Sat, 20 Jan 2024 03:03:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XZ09yivC" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B958EBC for ; Sat, 20 Jan 2024 03:03:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705719834; cv=none; b=dO90VzTweLtlhmtezuXQNiFOvuOF/qaBBo2S8GngLcML1QyJA3eCgXIs1Tb6d+9a4ovOJrAgYVLwHwC4PvaoRGl8+jJlKkI/gklcv9SXCX/iabr+QRDPS5K1NqKu/OhTiUuqJTC9NI9P8qnkKg/H1AvlO/SfgyRVNu70pNOBqgw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705719834; c=relaxed/simple; bh=YIF0KoiBNvuYIVD9snwLfREDKSNSJzQ8k5c9fKM2oaQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mm9w/zwZuMKHMHqlDgPEFhgtr2x0CREgKEHgNmeE6amnF6kefVRghN+FeG6BTWhjEllfkp1oPXPKZa8bSOFXXMO7dz7CQUXmN5mey72lMeWTk+ciq0MCSad1RUGj9f+UI8VdgI5fzIh4WwQqJ12s3rV+88J0IbmeGC5Z2iH2iNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XZ09yivC; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705719832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YIF0KoiBNvuYIVD9snwLfREDKSNSJzQ8k5c9fKM2oaQ=; b=XZ09yivCcxU1S9f2yhwiOb+BqwQKEgxKO4HdLf2fuJ+aTkH23aRYJjBQAUsxI7f+l1jgbu HmIS4KlMPn57uTmXL29CdTR8hM3r5Pzy1pJcaniMaqLcq/MBami+Qf+nVWuBzCi+V5w+f/ xy8b/2lcKwURvNp9alJk4xnG0V7ITbI= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-139-cIr3tsP0P_Cw3AQmS9TEVQ-1; Fri, 19 Jan 2024 22:03:46 -0500 X-MC-Unique: cIr3tsP0P_Cw3AQmS9TEVQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C36963C0C4BA; Sat, 20 Jan 2024 03:03:45 +0000 (UTC) Received: from fedora (unknown [10.72.116.42]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3896F1C05E0E; Sat, 20 Jan 2024 03:03:40 +0000 (UTC) Date: Sat, 20 Jan 2024 11:03:37 +0800 From: Ming Lei To: Yury Norov Cc: Andrew Morton , Thomas Gleixner , linux-kernel@vger.kernel.org, Andy Shevchenko , Breno Leitao , Nathan Chancellor , Rasmus Villemoes , Zi Yan Subject: Re: [PATCH 1/9] cpumask: introduce for_each_cpu_and_from() Message-ID: References: <20240120025053.684838-1-yury.norov@gmail.com> <20240120025053.684838-2-yury.norov@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240120025053.684838-2-yury.norov@gmail.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 On Fri, Jan 19, 2024 at 06:50:45PM -0800, Yury Norov wrote: > Similarly to for_each_cpu_and(), introduce a for_each_cpu_and_from(), > which is handy when it's needed to traverse 2 cpumasks or bitmaps, > starting from a given position. The new helper is useless, see https://lore.kernel.org/lkml/ZZNgDb6bzOscrNmk@fedora/ Thanks, Ming