mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
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
This commit is contained in:
parent
402de7fc88
commit
85c9a8f453
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user