Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1617821
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask |
| Date | 2017-04-06 11:50 +0200 |
| Message-ID | <ttcdc-6Oa-17@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <tsODU-f3-21@gated-at.bofh.it> <tt8VY-4N0-31@gated-at.bofh.it> <ttabo-5wO-27@gated-at.bofh.it> <ttaEq-5XA-9@gated-at.bofh.it> <ttbTR-6GC-49@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Apr 06, 2017 at 11:25:42AM +0200, Sebastian Andrzej Siewior wrote:
> > I.e. just have a counter and these two APIs:
> >
> > static inline void migrate_disable(void)
> > {
> > current->migration_disabled++;
> plus
> if (current->migration_disabled == 1)
> get_online_cpus()
You want that other hotplug fast hack crap you have in rt, no? Because
mainline will not get anything other than prempt_disable() for
migrate_disable().
> > }
> >
> > ...
> >
> > static inline void migrate_enable(void)
> > {
> > current->migration_disabled--;
> > }
> >
> > ... and make sure the scheduler migration code plus the CPU hotplug code considers
> > the counter.
>
> So on the sched part I need go through all places where it looks at the
> mask and make sure it ignores the CPU switch decision. This could be
> doable.
Don't sprinkle that around. Use a wrapper like say: tsk_cpus_allowed()
to encapsulate that logic :-)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2017-04-04 20:50 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Ingo Molnar <mingo@kernel.org> - 2017-04-05 09:40 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2017-04-05 10:40 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Ingo Molnar <mingo@kernel.org> - 2017-04-06 08:20 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2017-04-06 09:40 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Ingo Molnar <mingo@kernel.org> - 2017-04-06 10:10 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2017-04-06 11:30 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 11:50 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Thomas Gleixner <tglx@linutronix.de> - 2017-04-06 13:00 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 13:50 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 11:40 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 11:50 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Thomas Gleixner <tglx@linutronix.de> - 2017-04-06 12:40 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Ingo Molnar <mingo@kernel.org> - 2017-04-06 13:10 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Thomas Gleixner <tglx@linutronix.de> - 2017-04-06 13:20 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Ingo Molnar <mingo@kernel.org> - 2017-04-07 09:20 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 11:40 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 11:40 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2017-04-06 11:50 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 12:40 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Thomas Gleixner <tglx@linutronix.de> - 2017-04-06 12:50 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 13:00 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Thomas Gleixner <tglx@linutronix.de> - 2017-04-06 13:10 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 14:00 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Thomas Gleixner <tglx@linutronix.de> - 2017-04-06 14:00 +0200
Re: [RFC PATCH] kernel: sched: Provide a pointer to the valid CPU mask Peter Zijlstra <peterz@infradead.org> - 2017-04-06 14:40 +0200
csiph-web