From nobody Mon Jun 29 20:01:04 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81424C433EF for ; Thu, 3 Feb 2022 14:36:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351789AbiBCOgN (ORCPT ); Thu, 3 Feb 2022 09:36:13 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:53516 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351235AbiBCOdw (ORCPT ); Thu, 3 Feb 2022 09:33:52 -0500 Date: Thu, 03 Feb 2022 14:33:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643898832; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QItYorZ8UQSDLZlgHz4lTwClZ+u7I3cQdYj5DO98KxU=; b=okdMUJ01H+DPaG0Pfehhzfo3G2pZ5zcM8G91NaF2CSAWAzG1lXrjroAmw153YVU7HuRoLm 1r02fL5aMN9V+aWViqz94c29mZ98aZWm+vl+5uVosZaohhyf32of73z1wlMIXxyPr+ILdd DiAlzsi+ugX1r309fwPmvJm1JMITTmPSbsSZDJqYlODf/k32RaRMy0GUWeVnsLJ7bG8uXv 4y0h4FgBo6Wcc2Fd7ZDUqC0o9RnNkifbYF5ACyF5QZkVR+L26fCGd9NzahddE0V2ZRS9aQ qHo51JcnE5PibSHueFcNcUSliSa19w4wO627HzEv2EPsiDTKXkE8tESwNY5zlQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643898832; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QItYorZ8UQSDLZlgHz4lTwClZ+u7I3cQdYj5DO98KxU=; b=yOpORoFTPukXYKNhwXUh2E6EwhjHsDd2R+jSU9DhfgCiCgQOHASIjJaL6BWVIHkOTevMxu mQfx/61C8Y8c6FCw== From: "tip-bot2 for Mathieu Desnoyers" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] selftests/rseq: Remove useless assignment to cpu variable Cc: Mathieu Desnoyers , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220124171253.22072-4-mathieu.desnoyers@efficios.com> References: <20220124171253.22072-4-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Message-ID: <164389883099.16921.4725274995214771640.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 930378d056eac2c96407b02aafe4938d0ac9cc37 Gitweb: https://git.kernel.org/tip/930378d056eac2c96407b02aafe4938d0= ac9cc37 Author: Mathieu Desnoyers AuthorDate: Mon, 24 Jan 2022 12:12:41 -05:00 Committer: Peter Zijlstra CommitterDate: Wed, 02 Feb 2022 13:11:34 +01:00 selftests/rseq: Remove useless assignment to cpu variable Signed-off-by: Mathieu Desnoyers Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20220124171253.22072-4-mathieu.desnoyers@ef= ficios.com --- tools/testing/selftests/rseq/param_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/rseq/param_test.c b/tools/testing/self= tests/rseq/param_test.c index 699ad5f..cc2cfc1 100644 --- a/tools/testing/selftests/rseq/param_test.c +++ b/tools/testing/selftests/rseq/param_test.c @@ -368,9 +368,7 @@ void *test_percpu_spinlock_thread(void *arg) abort(); reps =3D thread_data->reps; for (i =3D 0; i < reps; i++) { - int cpu =3D rseq_cpu_start(); - - cpu =3D rseq_this_cpu_lock(&data->lock); + int cpu =3D rseq_this_cpu_lock(&data->lock); data->c[cpu].count++; rseq_percpu_unlock(&data->lock, cpu); #ifndef BENCHMARK