[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87ikg0wwm2.ffs@tglx>
Date: Mon, 27 Oct 2025 09:57:09 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Shrikanth Hegde <sshegde@...ux.ibm.com>, LKML
<linux-kernel@...r.kernel.org>
Cc: Peter Zijlstra <peterz@...radead.org>, Gabriele Monaco
<gmonaco@...hat.com>, Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Michael Jeanson <mjeanson@...icios.com>, Jens Axboe <axboe@...nel.dk>,
"Paul E. McKenney" <paulmck@...nel.org>, "Gautham R. Shenoy"
<gautham.shenoy@....com>, Florian Weimer <fweimer@...hat.com>, Tim Chen
<tim.c.chen@...el.com>, Yury Norov <yury.norov@...il.com>
Subject: Re: [patch V2 10/20] sched/mmcid: Convert mm CID mask to a bitmap
On Mon, Oct 27 2025 at 11:15, Shrikanth Hegde wrote:
> On 10/22/25 6:25 PM, Thomas Gleixner wrote:
>> static inline void mm_init_cid(struct mm_struct *mm, struct task_struct *p)
>> @@ -1363,7 +1363,7 @@ static inline void mm_init_cid(struct mm
>> mm->mm_cid.nr_cpus_allowed = p->nr_cpus_allowed;
>> raw_spin_lock_init(&mm->mm_cid.lock);
>> cpumask_copy(mm_cpus_allowed(mm), &p->cpus_mask);
>> - cpumask_clear(mm_cidmask(mm));
>> + bitmap_zero(mm_cidmask(mm), cpumask_size());
>
> Could use num_possible_cpus() here? CID are bound to be less than it no?
Probably.
Powered by blists - more mailing lists