Re: [PATCH] sched: use task_current() instead of 'rq->curr == p'

2021-01-14 Thread Peter Zijlstra
On Wed, Jan 13, 2021 at 05:38:43PM -0500, Steven Rostedt wrote: > > Peter, > > This is a simple clean up patch that makes sense to me. Want to take it? > > Reviewed-by: Steven Rostedt (VMware) Might as well I suppose.. Thanks!

Re: [PATCH] sched: use task_current() instead of 'rq->curr == p'

2021-01-13 Thread Steven Rostedt
Peter, This is a simple clean up patch that makes sense to me. Want to take it? Reviewed-by: Steven Rostedt (VMware) -- Steve On Sat, 31 Oct 2020 01:32:23 +0800 Hui Su wrote: > We have supplied the macro: 'task_current()', and we should > all use task_current() instaed of 'rq->curr == p',

[PATCH] sched: use task_current() instead of 'rq->curr == p'

2020-10-30 Thread Hui Su
We have supplied the macro: 'task_current()', and we should all use task_current() instaed of 'rq->curr == p', which is more readable. No functional change. Signed-off-by: Hui Su --- kernel/sched/deadline.c | 2 +- kernel/sched/debug.c| 2 +- kernel/sched/fair.c | 6 +++--- kernel/sched