Re: [PATCH 06/15] tick/sched: Unify idle cputime accounting

From
Peter Zijlstra <peterz@infradead.org>
Date
2026-01-19 14:26:22
Also in
linux-pm, linux-s390, lkml
Reply to
Frederic Weisbecker, 2026-01-16
On Fri, Jan 16, 2026 at 03:51:59PM +0100, Frederic Weisbecker wrote:
quoted hunk ↗ jump to hunk
+#ifdef CONFIG_NO_HZ_COMMON
+void kcpustat_dyntick_start(void)
+{
+	if (!vtime_generic_enabled_this_cpu()) {
+		vtime_dyntick_start();
+		__this_cpu_write(kernel_cpustat.idle_dyntick, 1);
+	}
+}
Why don't we need to make sure steal time is up-to-date at this point?
quoted hunk ↗ jump to hunk
+void kcpustat_dyntick_stop(void)
+{
+	if (!vtime_generic_enabled_this_cpu()) {
+		__this_cpu_write(kernel_cpustat.idle_dyntick, 0);
+		vtime_dyntick_stop();
+		steal_account_process_time(ULONG_MAX);
+	}
+}
+#endif /* CONFIG_NO_HZ_COMMON */
  
Thread (41 messages) 41 messages, 8 authors, last reply 2026-02-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help