Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp95132pxb; Thu, 7 Jan 2021 23:00:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2zpk5aQKTJlNMiirR9OpnnB51wa5rEWhFaZMCtajXt20qIb2cm8Tax3tA3z5uhF0VJAc9 X-Received: by 2002:a17:906:8301:: with SMTP id j1mr1720141ejx.397.1610089248224; Thu, 07 Jan 2021 23:00:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610089248; cv=none; d=google.com; s=arc-20160816; b=e92FsVOHbz8gJg2jKH2HBNPLWoaYczEvxvJp5RD+5CAq4/Di+kZaG/Ps7GKTHl+oc5 injzLJBu4+HH5uTAb5zKPeo2DVatikW7leniZm0luAm+i03B/jbeJPlrW8EfptWHOSKf SVa+48QArNCq3gvn5DINKy8y8K69N/AP7Qwbi8+jRpjjAkQB7fLapkMypG4e/hKP3KSN X+lVeuEmJ/IslTvQSrfJWMo42ZwI3qZ2z4LpY9xspi4SLSQXWFz3CDJG5sT643ceOhj/ e4tdhJ7qW0UROgHS2CmKMKzYxBBIhbu+TRMTjA0WWkUJYA7Lj116L+9Np6++zLg9uWZ9 JRAA== 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 :ironport-sdr:ironport-sdr; bh=oSMJEeAPoWtaMydg+tAofqCD7E2gtVhDPKWo93O8azQ=; b=xw4DewVgMbHhbsd4COk+lppjmd6yt1nM28t4g2KjY6lga4wkLkXP4uXIfIZ0U+w7Gx Dr7tzxOuWUA6rOV4F4Dk4wB1NrPZmOpXoGrvvDabnLCC+7vdF3gCRBXPhMqe55LOjUX/ 1iTwBMXqbDEJ+aKGJ56CFuZ0dQkYpGjSAEEWrdqwbBjn0c8MZOXSYFCDb/H/TvgpmSTd TK9DAhKV9hD/VAkTxe2n+MdboaQLBmGFu1mdgowp/vvW58MtUrFPgv/zy9QKwp+RWPKF KulhQjDuOclIV9RvBhycwVQQGZ8uhEVRUYOpU1acShYewMN5IaG7pg6gILAXqU55luoa FIIg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f24si3461081edq.247.2021.01.07.23.00.24; Thu, 07 Jan 2021 23:00:48 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726919AbhAHG72 (ORCPT + 99 others); Fri, 8 Jan 2021 01:59:28 -0500 Received: from mga07.intel.com ([134.134.136.100]:8569 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbhAHG72 (ORCPT ); Fri, 8 Jan 2021 01:59:28 -0500 IronPort-SDR: mOdLpJRLFJSo6cA/71PSx2Lq86IO6FZ554L5e8ofrw1P9YYh8QRrgo0Q41Hww1iiVKIYLaLu1b ADkUThRCtCoQ== X-IronPort-AV: E=McAfee;i="6000,8403,9857"; a="241627373" X-IronPort-AV: E=Sophos;i="5.79,330,1602572400"; d="scan'208";a="241627373" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2021 22:58:47 -0800 IronPort-SDR: hzQzZKKMtP2iQeWLJfjzb8EY2IrNOnvWkhGj8jilq4RCtJwTCNbhqDh9ehTeHDHqBv2JWbTiDI hlukkje3AmjQ== X-IronPort-AV: E=Sophos;i="5.79,330,1602572400"; d="scan'208";a="463305028" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2021 22:58:46 -0800 Date: Fri, 8 Jan 2021 15:01:11 +0800 From: Chen Yu To: "Rafael J. Wysocki" Cc: Linux PM , LKML , Srinivas Pandruvada Subject: Re: [PATCH v1 2/3] cpufreq: intel_pstate: Change intel_pstate_get_hwp_max() argument Message-ID: <20210108070111.GB20383@chenyu-office.sh.intel.com> References: <5701645.lOV4Wx5bFT@kreacher> <2241039.bdjsIDbar3@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2241039.bdjsIDbar3@kreacher> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 07:43:30PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > All of the callers of intel_pstate_get_hwp_max() access the struct > cpudata object that corresponds to the given CPU already and the > function itself needs to access that object (in order to update > hwp_cap_cached), so modify the code to pass a struct cpudata pointer > to it instead of the CPU number. > > Signed-off-by: Rafael J. Wysocki Tested-by: Chen Yu thanks, Chenyu