From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 980F71F0991 for ; Sun, 21 Jun 2026 02:25:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782008727; cv=none; b=eLJJVdvSnB6iKSOp5+An+sHT9zo+lZUzXtZR+ved7c8jnEKkZPHxZjkCAMVL2HteX6Alu2TQhK8+AEWb4YcZSE8eBoxrNGtBufg7Q7eYOD4aWO641sPvxuSoupLg67rvPztmKqVp5cZnJhH0v+H16LogZ5SbahfiDYR5o//N/PA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782008727; c=relaxed/simple; bh=qiDmpwHvSf0ESSsN4jjuEyK0qPyNBrD4EVAWjiINbno=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XjA24XmCnd/bu6W8vgzI+cUUeUZySt0ysfPQo9rnX9OYgB1wh+24tU0GisUCNUyx4sOGKK8QqoK4EzZVbJuvRUQxconwpoNmDNEwqPIqCVeIl2f1nuzGbKFs0w0/EwgTfQNTKK/OoyMNxjkIZ0h3j5N4mlUecwh/7jxs9TViOgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TAcREkJ8; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TAcREkJ8" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-84347ad88edso2718354b3a.1 for ; Sat, 20 Jun 2026 19:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782008726; x=1782613526; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FdaA/SM11os14S0jUA16RVB04AGKXRXcDaaAOIoqvxs=; b=TAcREkJ8ZgvuVMICHbkhJTv59R3Jvu42JPxI9BBL2FMtR9TUJ5pmsY0YwkERi/cMlH Q1wLiQb4dMDszOxUj/PIvtsyV1z8F5tpdAJdBB5gJjg0ONYNtyhJB+GKw4Ji/AM65yUD JCOLGA4jiANQmyW9vtH6WhJVHysYpuPd8p+uHuDHg3GWKAvATzGZLbrcsYSijZhmK+15 Ies1uzmyk/EXm5XYeABSx1hXpDmk/C5NrSmPic1j1jZbGxqxPgAPASNPbfE+RK8brVJf 90dJz1uU4jQZkr4o7AbjFE8YA+wJIDCzhvvog8OyDW0S0XaoBCQX0MYhq+4kYIRCtRoX cvdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782008726; x=1782613526; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FdaA/SM11os14S0jUA16RVB04AGKXRXcDaaAOIoqvxs=; b=EtCG49Di59BfZwpnmWOHncmzuqsaMOki6uYIMGPOWgwuiaSKkaWVWU2uCf+QwCz2TC k5vSGu/Z5tHG9dg0HvABOIzLJrl1RX6MS2Z2+/r7xHl0GOsHMa0MuoagxN3QHJd2WvHj c10jDiZYgxx8uRsTDtUZCUvyGGnmakkb/89/QRSB7JQjJNQ1fZDHeLjs+M+2oVspXgvH UfXrHOBMMeNnJUW7TcslnfCE+SzQIo4U6CPcTLHzG/F4Cvt0ki2+2hqeIB7UF1ClszeK nkSmm5ihxr6T/RvMUpQzd5gQG6Il9/YC30G2NpUF5A5sk8iRrSGbsfS4IrjhcMH00hnr aAHA== X-Forwarded-Encrypted: i=1; AFNElJ8VQzKvvS7xC0L1M60KTaP58IqZB/J4BAJHOIjD3XH5N+eCX9ZnAM33cOAS89kIoY0ycP/Gs8k+WOeg5NY=@vger.kernel.org X-Gm-Message-State: AOJu0YyKRJ4xvuKliwbrTKgkpoEA6qWBcKoqLXDocptXpAJ1c6lFEpek B4GdiiixrefKSC47U5BUNSE6+Rf1XHpn2DktSPE6XZgz2OfioWuCZoac X-Gm-Gg: AfdE7cng8KzrwNmmo45gRDQRbivNYB4V3YEfOeRY+XEphIQkmL7zTsqkkTK/ca94FIL LPRcUfXZm2ST0G0w5jnIk7OZ24Y5oCd/LTAZylhFefyU8MXFou90rGhNkhW7vSMcevv/BmmzYYj PBzyHAcVfE3aqmXYHkfkbYM8BCV1yHCDjfipQTGmBtb7v9wiSCynHEW9WTDG+fA7UK0yGCfiQdS V9MWxwxyb03di07eWggxukFssvXq8/eXRi1rdr98LucspUadjtxoVTujjWO9JjepwEP3c1b0lIU 4N0Q2WSn9i3ARqdVY10ft1t9y235etjV+1fXcvYhe5HD0EIO4sxWDRONdZnsjH93P2WRtYhfwnL Wb+OMBuSmajRhR9omqM1jQSmpwWlUyk1Tv64NDVyNax/3qB8OFLGIjLKNeNVPKaHQRjDJRz/5Wt Nb1+mczIOSZNPJZfu9/FvvP/7xmqwrNj9SMlQKxwuoU2o= X-Received: by 2002:a05:6a00:2d06:b0:83e:f75d:828d with SMTP id d2e1a72fcca58-845507c22camr9640905b3a.16.1782008725714; Sat, 20 Jun 2026 19:25:25 -0700 (PDT) Received: from xiaodong.localdomain ([2409:8a1e:9342:7650:8919:8769:2de0:afea]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84564ed3bd8sm3262233b3a.56.2026.06.20.19.25.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jun 2026 19:25:25 -0700 (PDT) From: wangxiaodong To: rafael@kernel.org, viresh.kumar@linaro.org Cc: corbet@lwn.net, skhan@linuxfoundation.org, linux-pm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, wangxiaodong Subject: [PATCH] Documentation: admin-guide: pm: cpufreq: fix sampling_rate example command Date: Sun, 21 Jun 2026 10:25:03 +0800 Message-ID: <20260621022515.10137-1-wangxiaodong827546786@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The example shell command for setting ondemand's sampling_rate wraps an arithmetic expansion $((...)) in command-substitution backticks. The arithmetic result is then executed as a command, which fails and writes an empty value. Drop the surrounding backticks so the computed value is passed to echo as intended. Signed-off-by: wangxiaodong --- Documentation/admin-guide/pm/cpufreq.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/pm/cpufreq.rst b/Documentation/admin-guide/pm/cpufreq.rst index 8831cface585..34baf20cc202 100644 --- a/Documentation/admin-guide/pm/cpufreq.rst +++ b/Documentation/admin-guide/pm/cpufreq.rst @@ -497,7 +497,7 @@ This governor exposes the following tunables: represented by it to be 1.5 times as high as the transition latency (the default):: - # echo `$(($(cat cpuinfo_transition_latency) * 3 / 2))` > ondemand/sampling_rate + # echo $(($(cat cpuinfo_transition_latency) * 3 / 2)) > ondemand/sampling_rate ``up_threshold`` If the estimated CPU load is above this value (in percent), the governor -- 2.43.0