Re: [PATCH v2 01/12] sched/psi: Optimize psi_group_change() cpu_clock() usage
From: Chris Mason
Date: Wed Jul 16 2025 - 12:28:26 EST
On 7/16/25 6:40 AM, Peter Zijlstra wrote:
> On Wed, Jul 16, 2025 at 08:53:01AM +0200, Beata Michalska wrote:
>> Wouldn't it be enough to use SEQCNT_ZERO? Those are static per-cpu ones.
>
> Yeah, I suppose that should work. The below builds, but I've not yet
> observed the issue myself.
[ ... ]
>
> -static DEFINE_PER_CPU(seqcount_t, psi_seq);
> +static DEFINE_PER_CPU(seqcount_t, psi_seq) = SEQCNT_ZERO(psi_seq);
As expected, this also works. Thanks everyone.
-chris