From nobody Fri Nov 29 21:01:52 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62D9115B57C for ; Mon, 16 Sep 2024 22:49:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726526976; cv=none; b=RUFxX+37n3wkjOCI4ravx7Bqnedlx3K/ayz0R5aNO5cf/VJ7USuXmeh3mrNU/jAwTo3nmxUYl4YPhMLXuzRgW8713b2JUZM5LSghmIgy8b3quds6Qrskec1+aLmiPwn+RJ6Bx4I/xoB321VUGuLmvEKUzb+KnthRFbkGAmpJp7k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726526976; c=relaxed/simple; bh=0P3cw1hR9bRTtfA3GkNVPSqmTI3laEGRCvS0ucnfa+o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qrJVr9prQvm6hjEoali8khn4uK2m36x9foURAyX8l+32B8Oj6GspWTXN23jVbTtFxks2gCoZzfDZhd3LNa1lf4IxBMKXrfY6BEis6xcC2aHpAOZPQY7lqWAH7LPP0dXlca3Lcm3uKfMaWQ/BjxtfQS3mOvsDbIRppkZOpQ+lAJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eGeYvanq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eGeYvanq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFA79C4CEC5; Mon, 16 Sep 2024 22:49:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726526975; bh=0P3cw1hR9bRTtfA3GkNVPSqmTI3laEGRCvS0ucnfa+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eGeYvanql6Br+UdwFEhFyLgvO0ID7xr5o0ZW2NwP+6N0n7XpmiJZOgkmhOjZkI6Uj YMBmJj1+6FM6ute8bBCSY4BTzFPsw+bq12Up6mxhrPNKPfqsnMeUMBoBan/qVYZ2XF CmU9i0CmDKfgtBcjIKkYUnnnhW1YknTojcYzKAyo86D7+WaOGhEZXGWe4f69Tyskoz WXQGsn+tyBKJUHPAELkAI8gNj4tQfrsvOFlVPdNxdJu+PGcNMwfJJGENS8CMfMEi0X TDP09T+F5EV4RvY3+ou0CFJixTMqSK8pJTy6bROMUP02AqBMg9xDrExeL15Rg2GAox lDOSXQKve1kWQ== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Russell King , linux-arm-kernel@lists.infradead.org, Andrew Morton , Peter Zijlstra , Thomas Gleixner , Dave Martin , Nicolas Pitre Subject: [PATCH 01/19] arm/bL_switcher: Use kthread_run_on_cpu() Date: Tue, 17 Sep 2024 00:49:05 +0200 Message-ID: <20240916224925.20540-2-frederic@kernel.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240916224925.20540-1-frederic@kernel.org> References: <20240916224925.20540-1-frederic@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the proper API instead of open coding it. Reviewed-by: Dave Martin Acked-by: Nicolas Pitre Signed-off-by: Frederic Weisbecker --- arch/arm/common/bL_switcher.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/arm/common/bL_switcher.c b/arch/arm/common/bL_switcher.c index 9a9aa53547a6..d1e82a318e3b 100644 --- a/arch/arm/common/bL_switcher.c +++ b/arch/arm/common/bL_switcher.c @@ -307,13 +307,11 @@ static struct task_struct *bL_switcher_thread_create(= int cpu, void *arg) { struct task_struct *task; =20 - task =3D kthread_create_on_node(bL_switcher_thread, arg, - cpu_to_node(cpu), "kswitcher_%d", cpu); - if (!IS_ERR(task)) { - kthread_bind(task, cpu); - wake_up_process(task); - } else + task =3D kthread_run_on_cpu(bL_switcher_thread, arg, + cpu, "kswitcher_%d"); + if (IS_ERR(task)) pr_err("%s failed for CPU %d\n", __func__, cpu); + return task; } =20 --=20 2.46.0