[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJ-ks9kFEp=B9eq5JWkZNDGo4awPwu=rqGASOn9RL8EMtqBAZQ@mail.gmail.com>
Date: Sat, 7 Dec 2024 13:52:43 -0500
From: Tamir Duberstein <tamird@...il.com>
To: David Gow <davidgow@...gle.com>
Cc: Brendan Higgins <brendan.higgins@...ux.dev>, Rae Moar <rmoar@...gle.com>,
Alyssa Ross <hi@...ssa.is>, Thomas Weißschuh <thomas@...ch.de>,
linux-kselftest@...r.kernel.org, kunit-dev@...glegroups.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] kunit: add fallback for os.sched_getaffinity
On Tue, Nov 5, 2024 at 3:36 AM David Gow <davidgow@...gle.com> wrote:
>
> On Sat, 2 Nov 2024 at 20:10, Tamir Duberstein <tamird@...il.com> wrote:
> >
> > Python 3.13 added os.process_cpu_count as a cross-platform alternative
> > for the Linux-only os.sched_getaffinity. Use it when it's available and
> > provide a fallback when it's not.
> >
> > This allows kunit to run on macOS.
> >
> > Signed-off-by: Tamir Duberstein <tamird@...il.com>
> > ---
>
> Looks plausible enough to me. Thanks very much!
>
> Reviewed-by: David Gow <davidgow@...gle.com>
>
> Cheers,
> -- David
Thanks David! While the next patch is still plausibly undergoing
discussion, would it be possible to pick this one up? Without it
kunit.py is not usable on macOS.
Powered by blists - more mailing lists