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

- From: Peter Zijlstra \<peterz@infradead.org\>
- Date: 2026-01-19 14:26:22 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/01/3375857
- Thread: https://ratatoskr.run/linux-pm/2026/01/3372602/t.md

```text
On Fri, Jan 16, 2026 at 03:51:59PM +0100, Frederic Weisbecker wrote:

> +#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?

> +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 */

```
