Re: [PATCH] sched,fair: use list_for_each_entry() in print_cfs_stats()

2020-10-08 Thread Hui Su
On Tue, Sep 29, 2020 at 11:56:42AM +0200, Dietmar Eggemann wrote: > On 25/09/2020 21:10, Hui Su wrote: > > Macro for_each_leaf_cfs_rq_safe() use list_for_each_entry_safe(), > > which can against removal of list entry, but we only > > print the cfs_rq data and won't remove the list entry in > > prin

Re: [PATCH] sched,fair: use list_for_each_entry() in print_cfs_stats()

2020-09-29 Thread Dietmar Eggemann
On 25/09/2020 21:10, Hui Su wrote: > Macro for_each_leaf_cfs_rq_safe() use list_for_each_entry_safe(), > which can against removal of list entry, but we only > print the cfs_rq data and won't remove the list entry in > print_cfs_stats(). > > Thus, add macro for_each_leaf_cfs_rq() based on > list_f

[PATCH] sched,fair: use list_for_each_entry() in print_cfs_stats()

2020-09-25 Thread Hui Su
Macro for_each_leaf_cfs_rq_safe() use list_for_each_entry_safe(), which can against removal of list entry, but we only print the cfs_rq data and won't remove the list entry in print_cfs_stats(). Thus, add macro for_each_leaf_cfs_rq() based on list_for_each_entry(), and use for_each_leaf_cfs_rq() i