Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp520725ybh; Wed, 15 Jul 2020 08:09:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3uRJlFb7J3QMslF3jnmxta9VS4Gx3087LxOxUbgy+V0+u2pGV8qPolbh7krXcWBIo7TO5 X-Received: by 2002:a17:906:19c9:: with SMTP id h9mr9306731ejd.526.1594825766382; Wed, 15 Jul 2020 08:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594825766; cv=none; d=google.com; s=arc-20160816; b=tcqVqL6jJou9iV0LSr+/xKDhjhRitSZ9Vn/tn6mlDudi1BLXgZAeI3XFSqJyWfrd0v K+C6zfcmNG+5/RRYJ/VqHs1omeT32m7RxwYKaxC0eGnyG+uuWMk4L/pCWBSaRFVuvf22 vCXAR7WOe8Rf0efhrQUYBDgvQ0q6Zuaq8fE/n6qoiNMQlf7m/zBmjaq9Fa4cvNFT57ZT 1dgsnY4GBtB+t9tF1x2mpfSiGIye8IZgTn9UDmxzqOXWAtEWR4UeVBmVR6aJgX/m1100 j3xfXgKIVR5gIfVS37wJroBVWYUO+fgx8lCejJvs115QpTyPSoOAxsAFBHNFj5pof9xy Mvlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1JgqT9mrEdGtuuXwQt1J5C4Rwf+h8f2OaFWoY0odJro=; b=dvCqSqpmP00DzkB9ksnnTu7w4ss+k4W15o8au65p5xhIsP3zDDwIt4XpNioPmEwVbq qmiMs6euyrY/DjKjamvd4oDDijge3XDoL4oQLSwvxUpmVyzKa37/GTyTxR8Deov3HZMR ow7JxFbYf/Fh43eOoV2ja6wmm4759Q/4lNMobLAJXUsl1DZ24wRLNmz88/LzFcQS4w8a lJsxrGGqNN3K+MFp99ygTwfgK9asDIpIRT5cDGafzsqWi7htoz9eaZ1TZMQhCEtzmgh/ 0etQNJA3tqhpvIOVleJyAxA9X0hh/GNq80pzw/lubPuWClPZRgkGoYLUpP6GcpLErJ3q ptpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S0VhaBxg; 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 x9si1397871ejj.548.2020.07.15.08.08.59; Wed, 15 Jul 2020 08:09:26 -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=S0VhaBxg; 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 S1728080AbgGOORo (ORCPT + 99 others); Wed, 15 Jul 2020 10:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbgGOORo (ORCPT ); Wed, 15 Jul 2020 10:17:44 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1C87C061755 for ; Wed, 15 Jul 2020 07:17:43 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id l2so6036715wmf.0 for ; Wed, 15 Jul 2020 07:17:43 -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:content-transfer-encoding:in-reply-to; bh=1JgqT9mrEdGtuuXwQt1J5C4Rwf+h8f2OaFWoY0odJro=; b=S0VhaBxg8cYN2y22Wc8O6G1H0W5VMl3rd5sgHxUVmhOmkptVnKaF2Atf0ycbrTZlJJ sND/EQFP9ttvwNC0bf7Aep2qLg+X2eS57cDpA5Y48S+1/77eLo6OmZElOADrMEqeBh7f k4fLSjVpyGlb6Q+Dh6qeGDi/Argdm/WmvtL5C41RmhcJ6NsfE6KAx7bxDDr08n7D4auF 1Z1XDU61mCGt8BkkdkTjLxR2YIvWXVvaXBAy5mhit9DKMAdmxGSnbig9tLf/1awmFsYn ykR2apsM/CS1X95ZF1wa1lIrb3u0f/wtq6QczfxsneKAuT4a2TMYSboex0KVB6zfsKZd A2ug== 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:content-transfer-encoding :in-reply-to; bh=1JgqT9mrEdGtuuXwQt1J5C4Rwf+h8f2OaFWoY0odJro=; b=oKESBryHecPnXD6aW/9Rd4aoQzTG11Xqx6UppO8Z4MqzMzN78c+1QSFvNO+eNOGmjQ D8Fzv/kgesxRII2fgAvmagRchtiwufzvWJtcb70efIPshDQ9wTrKTYiJZO8PBWfcT9fE OSugMLf+TRGqY1qcmL6vq9RWzUK1bmT/pICMPsUHNgtubz+dsuG/RVlGYf2YN5iWz2kC qGV3AqbaKCLj7kaPxozHXxAeo/sacY3Sj3GL4kXkhZ0Ke1eS1CejpDOT00HmMNL+oonR kcy+oBcYm8ODhF/I9aTjoyUoPLy+LL6/yFYXhwfhhbLk/G8KEBXlvezAqHJ2IN5xIEBS sjLg== X-Gm-Message-State: AOAM531eK52Ptzl/oEAAPuPm9d/Mdw/xWhV81zrbqARgAYBrseNkxNLJ 98MIi6hazlTf5P9IBUQBdtG9TA== X-Received: by 2002:a1c:4d05:: with SMTP id o5mr8820870wmh.130.1594822662438; Wed, 15 Jul 2020 07:17:42 -0700 (PDT) Received: from dell ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id p17sm3394573wma.47.2020.07.15.07.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 07:17:41 -0700 (PDT) Date: Wed, 15 Jul 2020 15:17:40 +0100 From: Lee Jones To: "Rafael J. Wysocki" Cc: Linux PM , LKML , Srinivas Pandruvada Subject: Re: [PATCH] cpufreq: intel_pstate: Clean up aperf_mperf_shift description Message-ID: <20200715141740.GG3165313@dell> References: <1695770.kLfQgcESsc@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1695770.kLfQgcESsc@kreacher> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Jul 2020, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The kerneldoc description of the aperf_mperf_shift field in > struct global_params is unclear and there is a typo in it, so > simplify it and clean it up. > > Reported-by: Lee Jones > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/intel_pstate.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > Index: linux-pm/drivers/cpufreq/intel_pstate.c > =================================================================== > --- linux-pm.orig/drivers/cpufreq/intel_pstate.c > +++ linux-pm/drivers/cpufreq/intel_pstate.c > @@ -202,9 +202,7 @@ struct global_params { > * @pstate: Stores P state limits for this CPU > * @vid: Stores VID limits for this CPU > * @last_sample_time: Last Sample time > - * @aperf_mperf_shift: Number of clock cycles after aperf, merf is incremented > - * This shift is a multiplier to mperf delta to > - * calculate CPU busy. > + * @aperf_mperf_shift: APERF vs MPERF counting frequency difference > * @prev_aperf: Last APERF value read from APERF MSR > * @prev_mperf: Last MPERF value read from MPERF MSR > * @prev_tsc: Last timestamp counter (TSC) value Definitely clearer. Reviewed-by: Lee Jones -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog