Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp520133ybh; Wed, 15 Jul 2020 08:08:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxndrh2DRXm/uF8pbLNyRqppIa6rmoQUjR+gKTRYlCtCmB9o/wDZRXChE4O6Ln2E/lqV2YL X-Received: by 2002:a50:ee8d:: with SMTP id f13mr74726edr.302.1594825728852; Wed, 15 Jul 2020 08:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594825728; cv=none; d=google.com; s=arc-20160816; b=mqgbMolJLfQQsDwBFnE37HRQ2SktrsNIfWLipJYsyMIaij2DkrpN297roE2buA35LN no1SBPwbdVl2eTKQlCI5eF2intOHCgExwashN9dWbCgbO/mJ5kUtkkQQQNwxIDJNKWBe EjGcV7x+GxDDlIoNE6Mxkr7O4OR6lP+XFd8lKaSCmfV7z17T46ryD1K3C0XmCEunsoQY JKUyXO/crMp0syQJSm3+W9aGD+K9WW50OalHutqDrLSBISGNNnmfXcykNy1L8cJlVG06 vOYKyvff+3IMvaFJxvM2rf6q+emwNet24AgDBHG4wCIi4h09VttDgiE0s+eVjcAB5Y56 8zow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ghHG1V37ymIy6GxxspTCT+91t0s4UoZHaAmn2rKSdiU=; b=kuD1NmvaagaqGOV9DjawKPYRH6FrWIZyE5xdTDcA8BV6yZdbvyl43H/IXC7kmWKRHB dJPHaUbPWFGTOHq7roYL0XtQOz/8ySuHogEawZUyPc1kOXcF15UhLTK6wzDYqIza7mCa K+7jYsxrEa8SHnDXWAAQ2Rt4Qsfk6jatDK9DSS7svDhjghbhEFi/wFICqvNDtNeaaiib 2PnCRI1ucXgHgOwWTtdm8AScr/ukEPPSpkvkpKtz8ot3XYI9ruIHtaEhb9902t6Rmdf0 Jqe8WVS11l5JL7qr1X375hGgho/nj82wwlHWNp59jNpugx7n6UnRCjbUV+JHL1yaJA9q vkEQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si1419766edq.363.2020.07.15.08.08.00; Wed, 15 Jul 2020 08:08:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731979AbgGONzB (ORCPT + 99 others); Wed, 15 Jul 2020 09:55:01 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:53536 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729086AbgGONzA (ORCPT ); Wed, 15 Jul 2020 09:55:00 -0400 Received: from 89-64-84-223.dynamic.chello.pl (89.64.84.223) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.415) id b1c849740f9f9775; Wed, 15 Jul 2020 15:54:58 +0200 From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Srinivas Pandruvada , Lee Jones Subject: [PATCH] cpufreq: intel_pstate: Clean up aperf_mperf_shift description Date: Wed, 15 Jul 2020 15:54:57 +0200 Message-ID: <1695770.kLfQgcESsc@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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