Skip to content

sched: use existing helper function for accessing avg_rt, avg_dl and avg_irq

Shrikanth Hegde lkml 2 versions – Applied

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

  1. v2 Latest2 patches 2 repliesApplied
  2. v11 patch 5 repliesApplied

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 filesSizeRepliesApplied
1/2sched: use existing helper functions to access ->avg_rt and ->avg_dlkernel/sched/fair.c+4 -41 reply
2/2sched: add READ_ONCE and use existing helper function to access ->avg_irqkernel/sched/fair.c kernel/sched/sched.h+2 -41 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchVincent Guittot
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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