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@xxxxxxxxxx> AuthorDate: Wed, 05 Jun 2024 13:01:44 +02:00 Committer: Ingo Molnar <mingo@xxxxxxxxxx> 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@xxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: linux-kernel@xxxxxxxxxxxxxxx --- 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);