Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp548845rdb; Thu, 22 Feb 2024 11:32:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWltR+4Fzh/ICdIkfRw8cdZdDWhLbI5z3HC9SNlu2sY+afnLN44u21dhy3f03MwLl7i1TxYXkNYXZY8hoCmxAKnopuibb9+d3TRGKvn7Q== X-Google-Smtp-Source: AGHT+IFRqd+aInp9aIgXU8Yguz2pyP0uhdOSmxBAmgTQHo6ogzxSjm5sFWzNbgIOAkBM2kPd1oFi X-Received: by 2002:a17:906:d107:b0:a3e:50ac:c5c9 with SMTP id b7-20020a170906d10700b00a3e50acc5c9mr9129374ejz.72.1708630320104; Thu, 22 Feb 2024 11:32:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708630320; cv=pass; d=google.com; s=arc-20160816; b=kkmofRhLmb5TLbvGiaKA4cCNc8qHzLUXgg4+Z39IAiFjPCmS/35BJzo4FXSVI7b/hl rF6MpO3JkbqCNAM1Te0zsREhqbdLrdaVvnDxpjRfdmPRg6I8ze4jWdnBwT+QDld92uZc 0MZ5+6VI9z3kWHhgVHt3SkNTYk1ruK0In0d9x4l4DAmhR5ZC4GO2ZW0PPwVy8CUA34uv dG5E/WMMKtDKNA9+abpaIV++raOO7dk6WSyj6DBiaWZ/BaANtjceyXAWdA7FtWIxmD7R D19UNfGRE9CwriyR8zt1DjWyDkmgNWWPf4b16MdiFeZjDPhv3kGBqMIzAlWlw7UM/tOe udrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=HUbj5CYmFAIrd6f8PVhsXr4RvnOfcvMJ/SWbSY+6fKE=; fh=G/XDhc2Zp+qmQoBiQThQOirNWKk4aL829k+I4xz2VXQ=; b=LaXZLFEsnPQNorAgpVVXx5E+9S+CVxtFEdMcQOvMF5ySwsvmzOS2nSpzm+gIR3GNr4 rAkxIOgYN/VaHWTKgSZ5txDba0hfi20yp04R7mRJpitqH1q93/CifaHbArcm/Qk8lbIp iB2pl62cxTAURXjKnSP4mcxFy4vRypZ7kc2u2wZwcuCYio5z4T3V2SK0oI+9/LSEFFih 0xMpfUtWWUwLfDpraxZhPlBf5oU60MgdAlpVW+wMOrBNRX9GNcSikaEv9GKw9wo/jG2t AkYpJHpQXawB7EjZta0vTqlXHLNKQyOcaeZSdzbnoG4BsCwmOWBaJDHNPiq6R/Pztx3B aIdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r18-20020a170906365200b00a3e3633cf8dsi5056474ejb.574.2024.02.22.11.32.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 11:32:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77264-linux.lists.archive=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=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77264-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 D00FA1F21F49 for ; Thu, 22 Feb 2024 19:31:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6321554906; Thu, 22 Feb 2024 19:31:52 +0000 (UTC) Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A1C114B823; Thu, 22 Feb 2024 19:31:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708630311; cv=none; b=Q67kHiCygVDBf3dKdNnckWwCckiO7axmSlah+zY5GjCF1eGc4cmHi0xaHlp6VcqAeCK4GfbMpF5zoYMMNyg6mCHozDqDt+oLt308QtC5I5DHgsKM5LiYpYruHhkEoZYX4iAVgkA1n3DvSaxr8hIS1UjcNZbbXB+SY46l2vezztM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708630311; c=relaxed/simple; bh=zSS3FRmSoCnIFn4LD8GRruJxoriuWhGhP0GKYALtiP8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HZFaqYb28BkarYR/2PgdXd4Ok389EG9tGvvP0oIoX21jczIgwjJKCxqUO4vmcAvOx/iI3hOG3eTTVQXVkoIc1Oa88RZNYZik/AKJA2gfTRd4XgJXHGcGgNWYJvIewVB7ZWguCNgVCMYs8GjEwDmpYI6ZxK5XCqY9WL5HE+cdhko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f46.google.com with SMTP id 46e09a7af769-6e45f7c63f4so293038a34.1; Thu, 22 Feb 2024 11:31:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708630309; x=1709235109; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HUbj5CYmFAIrd6f8PVhsXr4RvnOfcvMJ/SWbSY+6fKE=; b=KYfCz24awsBQUtsH66TvjiCbIPRKk32jNeJneZf6CKoKNh3gX7C7YyoaNePfj3zuRj 6lsXvna2ekQMua7FLpCoBc6yvaQ7zxkjMMeowg96y8LGVFTKrEo6xl2x3YqsAQy5xDBG c/wnnymdw649IzQzJUNXUpxrh3USMlsvK5Hvkr+X3HtzHeYFUrVksCENu2cjpJRe1ZRr gPzWgx/rdD49tJ6uielEPDt3tCb0zNOSZJeUDFok9RiyW4ouAvrlcb/fKkxy5f4CDi+/ G/3pix1Fd1yxCr7osbQdzPn8bWIS0b88fqSPSxg0sYZksl55hBCvDdU91kfvopM9udFQ AYcQ== X-Forwarded-Encrypted: i=1; AJvYcCVb1i7VrwlMMU22wONqane1V+zCtS0jRAjs23K8z7as3i3ZaI7Grf7drvRtzG/PzlcCrYNpvUIIdvQ74q1cDlVs3wcSCxpIfNA= X-Gm-Message-State: AOJu0YxIaJFrfV3f8w31vQRbZvcK+7V+plDsdeMhnqS86yXF6w+efGuI +DtZm6oaTZ6p3WqJa4LmNlWhYODkL7dQnGruPsIoPQLe6yYTXQ0ujBFKe0f2RGHGwEVAP6PymZK xv4wW09YdyOTYGRIMA2PNCT/4fy7eWIT9 X-Received: by 2002:a4a:c3cb:0:b0:5a0:3d13:a45a with SMTP id e11-20020a4ac3cb000000b005a03d13a45amr702240ooq.0.1708630309494; Thu, 22 Feb 2024 11:31:49 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240222153415.2088039-1-pierre.gondois@arm.com> In-Reply-To: <20240222153415.2088039-1-pierre.gondois@arm.com> From: "Rafael J. Wysocki" Date: Thu, 22 Feb 2024 20:31:38 +0100 Message-ID: Subject: Re: [PATCH] cpufreq: Remove references to 10ms min sampling rate To: Pierre Gondois Cc: linux-kernel@vger.kernel.org, Qais Yousef , "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2024 at 4:35=E2=80=AFPM Pierre Gondois wrote: > > 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 "dyn= amic_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 lo= ng old, u_int div, > > /* > * The polling frequency depends on the capability of the processor. Def= ault > - * polling frequency is 1000 times the transition latency of the process= or. The > - * ondemand governor will work on any processor with transition latency = <=3D 10ms, > - * using appropriate sampling rate. > + * polling frequency is 1000 times the transition latency of the process= or. > */ > #define LATENCY_MULTIPLIER (1000) > > -- Applied as 6.9 material, thanks!