public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6.12.y 0/6] cpuidle: menu: Backport get_typical_interval() improvements
@ 2026-03-20 20:29 Ionut Nechita
  2026-03-20 20:29 ` [PATCH 6.12.y 1/6] cpuidle: menu: Drop a redundant local variable Ionut Nechita
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Ionut Nechita @ 2026-03-20 20:29 UTC (permalink / raw)
  To: stable
  Cc: rafael.j.wysocki, linux-pm, christian.loehle, artem.bityutskiy,
	quic_zhonhan, aboorvad, Ionut Nechita

From: Ionut Nechita <ionut_n2001@yahoo.com>

This series backports 6 upstream commits that improve the menu
governor's get_typical_interval() function to linux-6.12.y stable.

These patches are already present in linux-6.18.y but were not picked
up for 6.12.y because they lack Cc: stable tags.

The key improvement is in patch 2/6 which merges the two separate loops
for average and variance computation into a single pass, reducing the
latency of menu_select() on isolated (nohz_full) cores. The remaining
patches refactor outlier detection to cover both ends of the sample set,
update documentation to match the new code, and add a minor bucket
assignment optimization.

After applying this series, drivers/cpuidle/governors/menu.c matches
linux-6.18.y exactly.

All patches are clean cherry-picks from mainline with one trivial
conflict resolution in Documentation/admin-guide/pm/cpuidle.rst
(patch 5/6).

Upstream commits:
  d2cd195b57cf ("cpuidle: menu: Drop a redundant local variable")
  13982929fb08 ("cpuidle: menu: Use one loop for average and variance computations")
  60256e458e1c ("cpuidle: menu: Tweak threshold use in get_typical_interval()")
  8de7606f0fe2 ("cpuidle: menu: Eliminate outliers on both ends of the sample set")
  5c35041099965 ("cpuidle: menu: Update documentation after get_typical_interval() changes")
  d4a7882f93bf ("cpuidle: menu: Optimize bucket assignment when next_timer_ns equals KTIME_MAX")

Rafael J. Wysocki (5):
  cpuidle: menu: Drop a redundant local variable
  cpuidle: menu: Use one loop for average and variance computations
  cpuidle: menu: Tweak threshold use in get_typical_interval()
  cpuidle: menu: Eliminate outliers on both ends of the sample set
  cpuidle: menu: Update documentation after get_typical_interval()
    changes

Zhongqiu Han (1):
  cpuidle: menu: Optimize bucket assignment when next_timer_ns equals
    KTIME_MAX

 Documentation/admin-guide/pm/cpuidle.rst |  56 +++++++----
 drivers/cpuidle/governors/menu.c         | 118 +++++++++++------------
 2 files changed, 91 insertions(+), 83 deletions(-)

--
2.53.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-21  8:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20 20:29 [PATCH 6.12.y 0/6] cpuidle: menu: Backport get_typical_interval() improvements Ionut Nechita
2026-03-20 20:29 ` [PATCH 6.12.y 1/6] cpuidle: menu: Drop a redundant local variable Ionut Nechita
2026-03-21  8:24   ` Greg KH
2026-03-20 20:29 ` [PATCH 6.12.y 2/6] cpuidle: menu: Use one loop for average and variance computations Ionut Nechita
2026-03-20 20:29 ` [PATCH 6.12.y 3/6] cpuidle: menu: Tweak threshold use in get_typical_interval() Ionut Nechita
2026-03-20 20:29 ` [PATCH 6.12.y 4/6] cpuidle: menu: Eliminate outliers on both ends of the sample set Ionut Nechita
2026-03-20 20:29 ` [PATCH 6.12.y 5/6] cpuidle: menu: Update documentation after get_typical_interval() changes Ionut Nechita
2026-03-20 20:29 ` [PATCH 6.12.y 6/6] cpuidle: menu: Optimize bucket assignment when next_timer_ns equals KTIME_MAX Ionut Nechita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox