Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp933863lqd; Thu, 25 Apr 2024 00:38:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7A+Q7X+2T41RrcXE2hxOEIRPGKePDO4+NY4vDS7d7cVmunf7o9tzGTcHAUPhhUPTHSYn8C5qL/4f03F0GdmQAlZILvcQBLOYmVxnFcA== X-Google-Smtp-Source: AGHT+IERe+Y2FGIEh8w6rVRV+oVuatDf6cKIWCoV/mieex4A4Gm8LQ08fQAS1h5D6bOAA/sfX8d2 X-Received: by 2002:a05:6808:bcc:b0:3c7:351f:b3ff with SMTP id o12-20020a0568080bcc00b003c7351fb3ffmr6248141oik.14.1714030711252; Thu, 25 Apr 2024 00:38:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714030711; cv=pass; d=google.com; s=arc-20160816; b=KindwdYFUMwPf+h4JSg1Rv4HHIdzCBYFxNsCjOYo+Bdmk/nICZ5n70/EbIU2NX9fxL kOHS4p4koChybnDpDsOOZ1iVyl0tmvqm0kfz9B5OMxGMBdMX01EUFi2320Pd6+8h9OPY scTwkU2mDF1VrnwE7jitclaiYxyXzRkN5JM1XPhgFlgC+LngaCDGX6E8DaafVk0LNKbS S3VeKdE2XeFP1Kn9yGy+O12l41NPvdKIjypU7ExCRGttpKmHK92NXp2ENhh3BxN3dkEX Y67PuKG1d/hyggARPiksq2NgE9zrQnkvDr1cPI9qsCnuBvlKKxR/SyS6zvBQfNiwNF/H e0Wg== 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:dkim-signature; bh=jJQtTreS4rRlmFcykkG+1PeKJQ26Urc/O33Jw46EHTI=; fh=+Jgp60w3hDyLdZJPcxt4BeFMUATJPlcSnPHwS8VIgzw=; b=lIs4CEOAymSfGGm1ZYe6ua0AJi40zglxFfmO8rube+RHG3q9mamMZIdyjuUeB2Miwt buP5SI6IwEdBymA9Xf5gTy3euMorq7XiDioUwPJcL+9Hs0rSg8gnrrwEoTVGos5yO0mr MWYdDLhuiVG7w/zZ0W7n3jNZOkCcPXd9AIwUQiQgZgfnm1X3/nB3e7k4dVIs5a30XBSY ep8na+U/knMnZ5HJnsQFpR9gs09PleAyOxszyiCR6ZHOTlHDZlJSf9fULjuXBTHGpOCS J39F59/DluXbZ2TjsDY0j8ugd9mdIOdG9LPyl4iZy7TKMQFC62pPXWkcUDTqQG8q3l1q o7lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Oaty3V5Y; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-158137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id gd26-20020a056a00831a00b006ed5f9e39easi12652646pfb.368.2024.04.25.00.38.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 00:38:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Oaty3V5Y; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-158137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 81F09B24C19 for ; Thu, 25 Apr 2024 07:37:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 18B7F6BFAC; Thu, 25 Apr 2024 07:37:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Oaty3V5Y" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 8DA3C2AF1E for ; Thu, 25 Apr 2024 07:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714030636; cv=none; b=YxAsJk17uohSUtptum9uU3gx7Phdt+NCLX8klgMK3gcsT7GoE5XS5zQptCjAOuv4rrap5zFxgPx9pHgqsFtcHB2QUNOOcv4eJO5KSGj4xXge3a7GnRlqiLcczC30z5r6Sl9gYI/LBpDBM9w2UmIgXH89P9paXv2cKzCPWsX79FQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714030636; c=relaxed/simple; bh=BvmJaWcEjXz9GIa99rQTmLRaFz+8HDPHC+3PB1q9ce0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jGLmbDsl8bpoPBt2Re/ULFKhxpYIggNKlSGNxYEPR2jyeSGQXeaEErKLYypdLCdxm7ZEKWs+gNRwJ7vFke7B+X5/uGfPGz6l8oKTAurfV6wS0hh7rc3il7HO7YsT/05hhjGAvmHO1m84WQJBX4BEZ1rMt7sfvKX0TPdOPTbxoHs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Oaty3V5Y; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-34c0f5f5cd0so218380f8f.2 for ; Thu, 25 Apr 2024 00:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714030633; x=1714635433; 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=jJQtTreS4rRlmFcykkG+1PeKJQ26Urc/O33Jw46EHTI=; b=Oaty3V5Y75F1CziU6tjzmGWExdNWmfTX7KJSinrFXXERh9v1FDxjlM5WpqXSsHHn6D IF/u23rS5GOBL6HcKHv6kEcg1YnXyu+UW4EaEjNtG3phiIus9Blkjl/eZlnVqssXgxkK hbKqc4bNnM9J9gqi2GpZHfqDPIP7rZO2GNJktnsX6WTIWAGyQglcwjPopIgvTYHO3vms 8qul2ohiKmnrEvbqFbD3K9IbgrNq2oky4byzDXG7d2Mk+N9foP5z4y3xQsyQANyiE1oy pQb+JySSp9qsadYyETkqn8puFsErFFHHVIX3DwLPPWyKIVY4imaM6Q3a1HZn8dYRMFl5 d7HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714030633; x=1714635433; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jJQtTreS4rRlmFcykkG+1PeKJQ26Urc/O33Jw46EHTI=; b=rzlV2OjB1Hw0RSXg7/UWIhnGGC5X0Urn3oDUiu6tv0km3Nihpk/wn+RCZvHP6SqxFY RwABlUEwcj+UucrBAkD7kkGIYq2GnxVzzTWDVScQOXcpWoH8edectgEoudkYHKBikjiB kYtsDKtrdAeGoWihXw41EggvIVRPYxCf+rBgaUMi0dYB9wK03u1+YkGFTZN6FDrlr8yD si0Ysh3JV+TFzaCQ/6FvxFkuq50vJyZMlP6bG47pVBKK7pNXGqXB8DRq2FVy/FCO2IvE sPoKmdJULP/h9TDrKHAXd5Q/HwkLQkXA3XTpPZi3+TcGbMamugMzLuMyfwV8C5rmXAS9 1NHg== X-Forwarded-Encrypted: i=1; AJvYcCUo+1/ICQQwTZsP1oQUlhlVSEo+ALG5nCgvM68tMGJcA0nsragWDDcv/djb7WKKxmBGJs80aI2UjhBXGsAeBOcOTYsBWSmrxFRLXxAj X-Gm-Message-State: AOJu0YydtP6QVXEpQy3hjURiGApMJEpjXNVnav5kP/HdX23vWvQ0DP4d 2+KkQpJiofNPKEc+YRiB4VRCqHRWqk6QkV9uogljWhv8nSw/vWOJHnT8KaEdDlU= X-Received: by 2002:a5d:4b48:0:b0:346:cd6f:3fd9 with SMTP id w8-20020a5d4b48000000b00346cd6f3fd9mr2826746wrs.10.1714030632872; Thu, 25 Apr 2024 00:37:12 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:f:6020:c9e5:6905:625:b832]) by smtp.gmail.com with ESMTPSA id l10-20020a5d410a000000b00343d1d09550sm19092060wrp.60.2024.04.25.00.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 00:37:11 -0700 (PDT) From: Vincent Guittot To: lkp@intel.com, sudeep.holla@arm.com, rafael@kernel.org, mingo@redhat.com, peterz@infradead.org, lukasz.luba@arm.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, qyousef@layalina.io Cc: Vincent Guittot Subject: [PATCH] arch/topology: Fix variable naming Date: Thu, 25 Apr 2024 09:37:09 +0200 Message-Id: <20240425073709.379016-1-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Using hw_pressure for local variable is confusing in regard to the per_cpu hw_pressure variable. Rename it to avoid confusion. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202404250740.VhQQoD7N-lkp@intel.com/ Signed-off-by: Vincent Guittot --- drivers/base/arch_topology.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 0248912ff687..c66d070207a0 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -179,7 +179,7 @@ DEFINE_PER_CPU(unsigned long, hw_pressure); void topology_update_hw_pressure(const struct cpumask *cpus, unsigned long capped_freq) { - unsigned long max_capacity, capacity, hw_pressure; + unsigned long max_capacity, capacity, pressure; u32 max_freq; int cpu; @@ -196,12 +196,12 @@ void topology_update_hw_pressure(const struct cpumask *cpus, else capacity = mult_frac(max_capacity, capped_freq, max_freq); - hw_pressure = max_capacity - capacity; + pressure = max_capacity - capacity; - trace_hw_pressure_update(cpu, hw_pressure); + trace_hw_pressure_update(cpu, pressure); for_each_cpu(cpu, cpus) - WRITE_ONCE(per_cpu(hw_pressure, cpu), hw_pressure); + WRITE_ONCE(per_cpu(hw_pressure, cpu), pressure); } EXPORT_SYMBOL_GPL(topology_update_hw_pressure); -- 2.34.1