From patchwork Thu Feb 22 15:34:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Gondois X-Patchwork-Id: 204820 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp20879dyb; Thu, 22 Feb 2024 07:35:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWvjzFtDN1VcC4KRbdj5lLrEypFfLZ/GWLHH6ooOPxvUJPEaMx21A6j4hDSgabQDvI0wh1OCCW237q4xInBCjn1reBs6g== X-Google-Smtp-Source: AGHT+IGVMX0GyHkSu4nOxS7g7tBTm/rpU56j4GjS/2luUaCCDhjQ+YVCqk4NSm2hiLi2yvw9ke9u X-Received: by 2002:a17:906:751:b0:a3f:5144:ada2 with SMTP id z17-20020a170906075100b00a3f5144ada2mr3154960ejb.2.1708616134386; Thu, 22 Feb 2024 07:35:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708616134; cv=pass; d=google.com; s=arc-20160816; b=xQzstObGq7XZXppvod4cnQc11Nvue93Ej2tWK/zJKUqqWhL2XKLEqSN++8Nqm3nPx2 Se7edJZAz6hTgTILHcwroGpCbzsb5cNIyzN965ADnsdzcmLZoLIubjsPb6VIj6xNjz6y KrCMZY/AiFOlbMo0YTfPRmHs2yy+JDq9WFMM8vPq+35BX7+8IKmsryJekPb9zOcFLaet o0su2NOIq11/WgJFlBa4hBZDOC4rOtYmuriDcCwmMAWDXQV0ux5s9PfDSh208kOyGDSR ICQk8vMa4tdy+uyfl9ExUEgZHfDXBdBJW89YteF2u4iTQQV5xB5tNxssrp5774bSJPMm apCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=gmnPTzE7StQyuuFvF2GpEoArLXD8WXVqNxHMik7Vfr8=; fh=PRS3TiKPHWXBhRfDiNnqRPF+RFrd6PsYUzA+ObPqhhw=; b=GfxySipC6hbazqInSF7IcHxuC5/5CdDDwvOKqWG+4XHpGP7Su4CVuj5EO4JAw4Airp jiQ5PEkRbPqfrj4UcWNTt5UmoYsl5/ZOicfXWcNTQgJHEeFghq+QUljHQ2ms3t0180Nb hOP7WAyiQINMN81/8p69UhD3KIAlAFGjMsfMylFtbydKp+BZ7bUb6o9k4SCZMbUb/2Xk +3sxAw8dPItuSn4bttd+mGBKHWewnNevaCm7niI6zxWYDt5IGQXa254N7KfbDf1d1USQ qVg3way5e5cjtdCFscG0eFeY0HSsbuDCIg5gqLzHpNeEXAYO0HytBDY9wRu8pIUpEkeo TECQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-76782-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76782-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id di12-20020a170906730c00b00a3ee10ee2fesi3071822ejc.949.2024.02.22.07.35.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 07:35:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76782-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-76782-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76782-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 0316D1F266EB for ; Thu, 22 Feb 2024 15:35:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B9FC14E2C9; Thu, 22 Feb 2024 15:35:20 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFC97482D4; Thu, 22 Feb 2024 15:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708616119; cv=none; b=XTweH4rOKKUaAjwFgYAsrq+A+iGaEuPl/iulDXYR0qq9sgmyskZ40u7ks6O7pAY9tVqYdCMJsFyGecUGdbpRa/AXm5bg4Wo5UMyngpcX+DHmJxke+9i9HfVDPD7ymSSEbHIGzjCUWLcCp/7XlfqLZ9nHK49Jkht/3tnSJKbcpHY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708616119; c=relaxed/simple; bh=bPZ0EsvB/HpMkcILAej/qoie7uL1Sv2IdnR6MjR097E=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mZJz50yr1ORolvIRgvuOjGsrgm28zxL0DZvkUCbOry0cCyZs0ngtKijowKm0+Nmy7hu51px+5xAB7eL1GMWurqtkeZ3sAwVbn5gqFKx0hno1g+BMhyGdYoD+EJr4MsOKcpx1G48bJrcW164KKvG/OjzXltOjJBSQ7/EQnLq35QU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AFCCFDA7; Thu, 22 Feb 2024 07:35:54 -0800 (PST) Received: from e126645.arm.com (unknown [10.57.50.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 93F4B3F762; Thu, 22 Feb 2024 07:35:14 -0800 (PST) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Qais Yousef , Pierre Gondois , "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org Subject: [PATCH] cpufreq: Remove references to 10ms min sampling rate Date: Thu, 22 Feb 2024 16:34:15 +0100 Message-Id: <20240222153415.2088039-1-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791613871648056507 X-GMAIL-MSGID: 1791613871648056507 A minimum sampling rate value of 10ms was introduced in: commit cef9615a853e ("[CPUFREQ] ondemand: Uncouple minimal sampling rate from HZ in NO_HZ case") The use of this value was removed in: commit ed4676e25463 ("cpufreq: Replace "max_transition_latency" with "dynamic_switching"") Remove: - a comment referencing this value - an unused macro associated to this value Signed-off-by: Pierre Gondois --- drivers/cpufreq/cpufreq_ondemand.c | 1 - include/linux/cpufreq.h | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index c52d19d67557..a7c38b8b3e78 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c @@ -22,7 +22,6 @@ #define DEF_SAMPLING_DOWN_FACTOR (1) #define MAX_SAMPLING_DOWN_FACTOR (100000) #define MICRO_FREQUENCY_UP_THRESHOLD (95) -#define MICRO_FREQUENCY_MIN_SAMPLE_RATE (10000) #define MIN_FREQUENCY_UP_THRESHOLD (1) #define MAX_FREQUENCY_UP_THRESHOLD (100) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 8b9026031a28..625949a1869d 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -568,9 +568,7 @@ static inline unsigned long cpufreq_scale(unsigned long old, u_int div, /* * The polling frequency depends on the capability of the processor. Default - * polling frequency is 1000 times the transition latency of the processor. The - * ondemand governor will work on any processor with transition latency <= 10ms, - * using appropriate sampling rate. + * polling frequency is 1000 times the transition latency of the processor. */ #define LATENCY_MULTIPLIER (1000)