Commit 68136390 authored by Tim Chen's avatar Tim Chen Committed by Enlin Mu
Browse files

BACKPORT: UPSTREAM: tick/sched: Preserve number of idle sleeps across CPU hotplug events



commit 9a574ea9 upstream.

Commit 71fee48f ("tick-sched: Fix idle and iowait sleeptime accounting vs
CPU hotplug") preserved total idle sleep time and iowait sleeptime across
CPU hotplug events.

Similar reasoning applies to the number of idle calls and idle sleeps to
get the proper average of sleep time per idle invocation.

Preserve those fields too.

Bug: 326322043
Fixes: 71fee48f ("tick-sched: Fix idle and iowait sleeptime accounting vs CPU hotplug")
Signed-off-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240122233534.3094238-1-tim.c.chen@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit  9a574ea9)
Change-Id: I4555f5fa5c01c4e4f9d48d6d981139a50839a942
Signed-off-by: default avatarEnlin Mu <enlin.mu@unisoc.com>
parent 9393aa38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment