Re: [RFC PATCH v2 3/5] sched: make schedstats helper independent of cfs_rq

2020-11-24 Thread Yafang Shao
On Tue, Nov 24, 2020 at 7:40 PM Mel Gorman wrote: > > On Mon, Nov 23, 2020 at 08:58:06PM +0800, Yafang Shao wrote: > > The 'cfs_rq' in these helpers > > update_stats_{wait_start, wait_end, enqueue_sleeper} is only used to get > > the rq_clock, so we can pass the rq directly. Then these helpers can

Re: [RFC PATCH v2 3/5] sched: make schedstats helper independent of cfs_rq

2020-11-24 Thread Mel Gorman
On Mon, Nov 23, 2020 at 08:58:06PM +0800, Yafang Shao wrote: > The 'cfs_rq' in these helpers > update_stats_{wait_start, wait_end, enqueue_sleeper} is only used to get > the rq_clock, so we can pass the rq directly. Then these helpers can be > used by all sched class after being moved into stats.h.

[RFC PATCH v2 3/5] sched: make schedstats helper independent of cfs_rq

2020-11-23 Thread Yafang Shao
The 'cfs_rq' in these helpers update_stats_{wait_start, wait_end, enqueue_sleeper} is only used to get the rq_clock, so we can pass the rq directly. Then these helpers can be used by all sched class after being moved into stats.h. After that change, the size of vmlinux is increased around 824Bytes