[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230510083450.62334-1-jiahao.os@bytedance.com>
Date: Wed, 10 May 2023 16:34:48 +0800
From: Hao Jia <jiahao.os@...edance.com>
To: mingo@...hat.com, peterz@...radead.org, mingo@...nel.org,
juri.lelli@...hat.com, vincent.guittot@...aro.org,
dietmar.eggemann@....com, rostedt@...dmis.org, bsegall@...gle.com,
mgorman@...e.de, bristot@...hat.com, vschneid@...hat.com,
mgorman@...hsingularity.net
Cc: linux-kernel@...r.kernel.org, Hao Jia <jiahao.os@...edance.com>
Subject: [PATCH v2 0/2] Fix two warnings about rq clock
These two patches fix two warnings about rq clock
Patch1 fixes the warning of using the old rq clock caused by
missing update rq clock.
Patch2 fixes the warning that the rq clock was updated multiple
times while holding the rq lock.
v1->v2:
- Vincent Guittot suggested using rq_clock_start_loop_update()
to prevent multiple calls to update_rq_clock() in unthrottle_cfs_rq()
instead of removing update_rq_clock() from unthrottle_cfs_rq()
and updating the rq clock before unthrottle_cfs_rq() for patch2.
[v1] https://lore.kernel.org/all/20230410081206.23441-1-jiahao.os@bytedance.com
Hao Jia (2):
sched/core: Fixed missing rq clock update before calling
set_rq_offline()
sched/core: Avoid double calling update_rq_clock()
kernel/sched/core.c | 7 ++++---
kernel/sched/fair.c | 16 ++++++++++++++++
kernel/sched/sched.h | 21 +++++++++++++++++++++
kernel/sched/topology.c | 10 ++++++----
4 files changed, 47 insertions(+), 7 deletions(-)
--
2.37.0
Powered by blists - more mailing lists