Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3322424pxb; Sun, 29 Aug 2021 22:07:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkynhKeBC0vWur8sOkRVYI8l+q4W3oPOx02iWCw2q9XaF+39oxprrTHDUdLtCYiot9YONv X-Received: by 2002:a17:906:d541:: with SMTP id cr1mr22745498ejc.81.1630300054396; Sun, 29 Aug 2021 22:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630300054; cv=none; d=google.com; s=arc-20160816; b=yE8z+C5Ct+GIbl7wIOvASX8sUYT8m4tCKHJJxSwP1RvjGQzIxMV3L83QG3UBAGtLXa eZQvXPxDRxvHZxEa+xsP6s9NKgI22fhOXl6SC0CqegyWn2ny+dT2kd4SL7HqCaP4wwKT P4wVJ6bniJeWl0whBlxaVm4mdje/S1UibEu0b9LJLCN3hlTxK0YmS8zZw4R4NWMrnaVN f3YuGYwRQIVSSHygQSROFkkUOcIeCl2zoIwdYq/fKJNpXn4N0m4qk6/rsiq0x6RnYpSd S6S3ElNzMJiO0PWanDOGhjvwXUNQ9qCFB2ETYc6pPA8zPb+BAo060Gvw0wFV0LY/bFQa HhXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=HziJP/dygEyNluPtXWKc6SpypCt4+2Y7o4pyW2rHfac=; b=oisrWOYcaACkzXlXJKHw9gmssMwFvlxDsofn1ayFq5qJh6157yVTcputF9n7Eb1l4q 03VGVscb8j0hpaSPC5eJLTzPpi2evWP6604KVT7m2NE/QqoCPoMNBrGj57hN9nvMNKFb SwuIkytFcZU5sGICu1+r5SOupwE8LtOM7fey0y+Xy3bhrJio05/QB57lnLL8WWnrvzsn Gv2X9eAi2ybuVNxA9paWAhx7+oskB5sC/Typw/tpBgM3Wl148IFAzCHuwoCYpENSb5nK X9Bcf6XVzeo/c9vUd1Gj4SafZbkmzgdTDQCDon+Skhs+3FZmbSljTHbhQT7nYW91SzSr lTwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zp5ZiMV0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si14383952ejy.432.2021.08.29.22.07.08; Sun, 29 Aug 2021 22:07:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zp5ZiMV0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbhH3FFs (ORCPT + 99 others); Mon, 30 Aug 2021 01:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbhH3FFr (ORCPT ); Mon, 30 Aug 2021 01:05:47 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D613C06175F for ; Sun, 29 Aug 2021 22:04:54 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id u13-20020a17090abb0db0290177e1d9b3f7so12985698pjr.1 for ; Sun, 29 Aug 2021 22:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HziJP/dygEyNluPtXWKc6SpypCt4+2Y7o4pyW2rHfac=; b=Zp5ZiMV0CfOCgf2/iAtGJuoGZruRIVvGXo0zwkLhRqNGm2j98/jWGYO3CcQ7JzTty8 YeBQMg8/vgV5n5MlWTvtEm1vg/F0it6S/Jq1xG2mzzgIcCA8IX+QuRayvC8QXG502Jgo /o66oy/NpG6jXjEzCSW2fmXw4iKkG8BfkbvDgCwGYOHPnV+7bSmZLrUyp6itAEfPVS+W slQAbuMAnE74l9jaPMWZP3au5bIV0FDIC+JdWFa5QyJKIuvbiLKZtW1zvuaJFuC9bZi6 uB2/HyNvHuR0sJOUitPcz/xeYH0USq+Ge64MWtcia25BcGv0Kpx6BdYXOSeIz8a5qFnl sRpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HziJP/dygEyNluPtXWKc6SpypCt4+2Y7o4pyW2rHfac=; b=Ja3ubbHPI8vRqrJXOs64c25OCMFKnBlsMHcgly3Uk530QCYELAnVJ0pn4g8zbRzvLj d2nzynw8oWE6rU8U3Nc49QTpZ8XynQH/gSUBOQLjVi3WNu+X0vbLs/H0LxAOafgoqigO n05jEF6xxYjGy6cMvppwLqYT9T1xaYWmWMcXBj9/U27byBuL4Qn+gukM1IoENosOFVMg xXw21H4YZHNsHBNfUyHnoNM8N43R8zHpj8NFtekGrx6tdhJx9flKV3Ekhnfn3JyYy4TN /SDXXhNR8GIWgGmTJIU8IlF3xZnUwD4pgYbtZOBqYOB5HDME5mdKn9o3AWySlyigA9Yf 3pRg== X-Gm-Message-State: AOAM533sIctVQDUdjtCeEE+Vx4qoBe/N21+cFbdluayv6W3i8MXzVwEt dOlfVpp9FfzsyinSrDKQ/QZ5sA== X-Received: by 2002:a17:90a:191a:: with SMTP id 26mr29224522pjg.118.1630299893596; Sun, 29 Aug 2021 22:04:53 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id n24sm14943364pgv.60.2021.08.29.22.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Aug 2021 22:04:52 -0700 (PDT) Date: Mon, 30 Aug 2021 10:34:50 +0530 From: Viresh Kumar To: Hector Yuan Cc: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com Subject: Re: [PATCH v14 2/3] cpufreq: Add of_perf_domain_get_sharing_cpumask Message-ID: <20210830050450.r4kfv72bsxsttnli@vireshk-i7> References: <1630162872-25452-1-git-send-email-hector.yuan@mediatek.com> <1630162872-25452-3-git-send-email-hector.yuan@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1630162872-25452-3-git-send-email-hector.yuan@mediatek.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28-08-21, 23:01, Hector Yuan wrote: > From: "Hector.Yuan" > > Add of_perf_domain_get_sharing_cpumask function to group cpu > to specific performance domain. > > Signed-off-by: Hector.Yuan > --- > include/linux/cpufreq.h | 39 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h > index 9fd7194..4916d70 100644 > --- a/include/linux/cpufreq.h > +++ b/include/linux/cpufreq.h > @@ -13,6 +13,8 @@ > #include > #include > #include > +#include > +#include > #include > #include > #include > @@ -1036,6 +1038,43 @@ void arch_set_freq_scale(const struct cpumask *cpus, > } > #endif > > +#ifdef CONFIG_CPU_FREQ > +static inline int of_perf_domain_get_sharing_cpumask(int index, const char *list_name, > + const char *cell_name, > + struct cpumask *cpumask) What happened with the discussion we had about returning index and passing CPU there ? -- viresh