Commit 85c9a8f4 authored by Ingo Molnar's avatar Ingo Molnar

sched/core: Simplify prefetch_curr_exec_start()

Remove unnecessary use of the address operator.
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org
parent 402de7fc
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment