[<prev] [next>] [day] [month] [year] [list]
Message-ID: <171758619265.10875.8871135454479339495.tip-bot2@tip-bot2>
Date: Wed, 05 Jun 2024 11:16:32 -0000
From: "tip-bot2 for Ingo Molnar" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Ingo Molnar <mingo@...nel.org>, Peter Zijlstra <peterz@...radead.org>,
linux-kernel@...r.kernel.org, x86@...nel.org
Subject: [tip: sched/core] sched/core: Simplify prefetch_curr_exec_start()
The following commit has been merged into the sched/core branch of tip:
Commit-ID: 85c9a8f4531c6c0862ecda50cac662b0b78d1974
Gitweb: https://git.kernel.org/tip/85c9a8f4531c6c0862ecda50cac662b0b78d1974
Author: Ingo Molnar <mingo@...nel.org>
AuthorDate: Wed, 05 Jun 2024 13:01:44 +02:00
Committer: Ingo Molnar <mingo@...nel.org>
CommitterDate: Wed, 05 Jun 2024 13:03:20 +02:00
sched/core: Simplify prefetch_curr_exec_start()
Remove unnecessary use of the address operator.
Signed-off-by: Ingo Molnar <mingo@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: linux-kernel@...r.kernel.org
---
kernel/sched/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 5d861b5..0935f9d 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5340,9 +5340,9 @@ EXPORT_PER_CPU_SYMBOL(kernel_cpustat);
static inline void prefetch_curr_exec_start(struct task_struct *p)
{
#ifdef CONFIG_FAIR_GROUP_SCHED
- struct sched_entity *curr = (&p->se)->cfs_rq->curr;
+ struct sched_entity *curr = p->se.cfs_rq->curr;
#else
- struct sched_entity *curr = (&task_rq(p)->cfs)->curr;
+ struct sched_entity *curr = task_rq(p)->cfs.curr;
#endif
prefetch(curr);
prefetch(&curr->exec_start);
Powered by blists - more mailing lists