[PATCH v2 0/2] sched: use existing helper function for accessing avg_rt, avg_dl and avg_irq

From: Shrikanth Hegde
Date: Mon Jan 01 2024 - 10:47:18 EST


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/20231220065522.351915-1-sshegde@xxxxxxxxxxxxxxxxxx/

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