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:Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by:
Thomas 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:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 9a574ea9) Change-Id: I4555f5fa5c01c4e4f9d48d6d981139a50839a942 Signed-off-by:
Enlin Mu <enlin.mu@unisoc.com>
Loading
Please sign in to comment