diff options
author | Ingo Molnar <mingo@kernel.org> | 2024-06-05 13:01:44 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-06-05 13:03:20 +0200 |
commit | 85c9a8f4531c6c0862ecda50cac662b0b78d1974 (patch) | |
tree | 6f6e97c2ce24803ae40023c666835671925d69b4 | |
parent | 402de7fc880fef055bc984957454b532987e9ad0 (diff) |
sched/core: Simplify prefetch_curr_exec_start()
Remove unnecessary use of the address operator.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org
-rw-r--r-- | kernel/sched/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 5d861b59d737..0935f9d4bb7b 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); |