sched: use existing helper function for accessing avg_rt, avg_dl and avg_irq
Status from this message: The following commit has been merged into the sched/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
v2->v1 from the cover letter
Vincent pointed out the READ_ONCE change for avg_irq. It would be correct to use READ_ONCE for accessing avg_irq. Changed the current helper function to do so.
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | sched: use existing helper functions to access ->avg_rt and ->avg_dlkernel/ | +4 | 1 reply | |
| 2/2 | sched: add READ_ONCE and use existing helper function to access ->avg_irqkernel/ kernel/ | +2 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Vincent Guittot |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] sched: use existing helper function for accessing avg_rt, avg_dl and avg_irq
Split the patches into two since there is subtle change with avg_irq. There is no functionality change expected due to first patch, while second patch may have. In case of any future regressions it would be easy to bisect.
This is minor code simplification. Using existing helper function would be simpler and easier to maintain.
v2->v1:
Vincent pointed out the READ_ONCE change for avg_irq. It would be correct to use READ_ONCE for accessing avg_irq. Changed the current helper function to do so.
v1: https://lore.kernel.org/lkml/[email protected]/
Shrikanth Hegde (2):
sched: use existing helper functions to access ->avg_rt and ->avg_dl
sched: add READ_ONCE and use existing helper function to access ->avg_irq
kernel/sched/fair.c | 12 +++++------- kernel/sched/sched.h | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-)
--
2.39.3