Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6998795pxv; Fri, 30 Jul 2021 07:40:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxodS9s+nQg7YBvmJPDc0KIAO21s0IIBBRXhJh9xLIG0aEduOQZjQ4yNRyIOG4VBs6msGBU X-Received: by 2002:a92:c0c3:: with SMTP id t3mr1053004ilf.80.1627656050094; Fri, 30 Jul 2021 07:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627656050; cv=none; d=google.com; s=arc-20160816; b=kuQIoEf9DRDzlWtgm0BUNJomAlG8Kht6KJm/yIou/Dn57UtJhbuDw/a/AeM8xDKauj wreuwPBWG4ILqkfabjnnqGbqjfRWVihsa76xUErDwfgzHYIKrBCfhdnEriutSHHaU06Q AMLASOV/lBMiU2/2u6zcYxtXiACRrm8yoby1yn95c9nIjnKybtlv/1ck1S2Z57+1yT6y 1FBVDcFKt1uynGsLE6zEHZV4YBSLKFp7BPOfd2rvizy99Ka10VjGHeAENrZdc8I+eK/z LlySkuKPtOPZ6iskitKJyOLtECcAPfItVCsLDo4GppWKG4w6E1T48b7xFbfIN3fBeBrN ay4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Mj34utfUjVEybMv8G+SjTVmWQldTloO0QHZAed0BbPs=; b=L50x7LIjBxfF6Riq9i8Bx7ohdMeUNhX30nFiGpHgAzMjwTnPxYVhJORCpBgg3v4yPw KRvnrN/a/5Kielf75WBinKl/9uhQDd+giZgHrgzLLpG/fxEaJlnlKZhvrZSJx6FA9eZo DFAmDKr3ISvP6AN50QJj354WN15F/YXU0XTcbfiI2nXiianaQ1xg66jZL2gE1V/Jh+NM ONdZv58//V5W7JlC6lF29GkmS1ppN8hY8Vsr8sBmygYcBiHT1/2d3ETWP96gvYfnN0h1 uRjguMJrLCaxXpF7SZspd6eQ7Ti6uEFsFR8K76kEqx1dqZIs2uecdkKpIAQL5v3eSxKy L7wg== 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 n11si2188978ilt.138.2021.07.30.07.40.38; Fri, 30 Jul 2021 07:40:50 -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 S239410AbhG3Ojq (ORCPT + 99 others); Fri, 30 Jul 2021 10:39:46 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:57384 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239172AbhG3Ojl (ORCPT ); Fri, 30 Jul 2021 10:39:41 -0400 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 3.0.0) id 2a845c5bd94e4d5e; Fri, 30 Jul 2021 16:39:33 +0200 Received: from kreacher.localnet (89-64-81-8.dynamic.chello.pl [89.64.81.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id EA4C6669F3A; Fri, 30 Jul 2021 16:39:32 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux PM , Doug Smythies Cc: LKML , "Rafael J. Wysocki" Subject: [PATCH v1 2/2] cpuidle: teo: Rename two local variables in teo_select() Date: Fri, 30 Jul 2021 16:38:52 +0200 Message-ID: <12823871.uLZWGnKmhe@kreacher> In-Reply-To: <4336554.LvFx2qVVIh@kreacher> References: <4336554.LvFx2qVVIh@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 89.64.81.8 X-CLIENT-HOSTNAME: 89-64-81-8.dynamic.chello.pl X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvtddrheehgdejgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdejlefghfeiudektdelkeekvddugfeghffggeejgfeukeejleevgffgvdeluddtnecukfhppeekledrieegrdekuddrkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeekledrieegrdekuddrkedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegushhmhihthhhivghssehtvghluhhsrdhnvghtpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhgrfhgrvghlsehkvghrnhgvlhdrohhrgh X-DCC--Metrics: v370.home.net.pl 1024; Body=4 Fuz1=4 Fuz2=4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Rename two local variables in teo_select() so that their names better reflect their purpose. No functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/cpuidle/governors/teo.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) Index: linux-pm/drivers/cpuidle/governors/teo.c =================================================================== --- linux-pm.orig/drivers/cpuidle/governors/teo.c +++ linux-pm/drivers/cpuidle/governors/teo.c @@ -382,8 +382,8 @@ static int teo_select(struct cpuidle_dri alt_intercepts = 2 * idx_intercept_sum > cpu_data->total - idx_hit_sum; alt_recent = idx_recent_sum > NR_RECENT / 2; if (alt_recent || alt_intercepts) { - s64 last_enabled_span_ns = duration_ns; - int last_enabled_idx = idx; + s64 first_suitable_span_ns = duration_ns; + int first_suitable_idx = idx; /* * Look for the deepest idle state whose target residency had @@ -419,8 +419,8 @@ static int teo_select(struct cpuidle_dri * disabled, so take the first enabled * deeper state with suitable time span. */ - idx = last_enabled_idx; - duration_ns = last_enabled_span_ns; + idx = first_suitable_idx; + duration_ns = first_suitable_span_ns; } break; } @@ -434,14 +434,14 @@ static int teo_select(struct cpuidle_dri * alternative candidate state has been found, * it may still turn out to be a better choice. */ - if (last_enabled_idx != idx) + if (first_suitable_idx != idx) continue; break; } - last_enabled_span_ns = span_ns; - last_enabled_idx = i; + first_suitable_span_ns = span_ns; + first_suitable_idx = i; } }