lkml.org 
[lkml]   [2021]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v11 08/16] sched: Allow task CPU affinity to be restricted on asymmetric systems
On Wed, Aug 18, 2021 at 01:53:28PM +0200, Peter Zijlstra wrote:
> On Wed, Aug 18, 2021 at 12:56:41PM +0200, Peter Zijlstra wrote:
> > On Wed, Aug 18, 2021 at 11:42:28AM +0100, Will Deacon wrote:
>
> > > I think the idea looks good, but perhaps we could wrap things up a bit:
> > >
> > > /* Comment about why this is useful with RT */
> > > static cpumask_t *clear_user_cpus_ptr(struct task_struct *p)
> > > {
> > > struct cpumask *user_mask = NULL;
> > >
> > > swap(user_mask, p->user_cpus_ptr);
> > > return user_mask;
> > > }
> > >
> > > void release_user_cpus_ptr(struct task_struct *p)
> > > {
> > > kfree(clear_user_cpus_ptr(p));
> > > }
> > >
> > > Then just use clear_user_cpus_ptr() in sched/core.c where we know what
> > > we're doing (well, at least one of us does!).
> >
> > OK, I'll go make it like that.
>
> Something like so then?

Looks good to me, thanks!

Will

\
 
 \ /
  Last update: 2021-08-18 14:20    [W:1.540 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site