diff options
| author | 2025-09-10 09:46:44 +0200 | |
|---|---|---|
| committer | 2025-10-16 11:13:52 +0200 | |
| commit | 942b8db965006cf655d356162f7091a9238da94e (patch) | |
| tree | c4607a7f83281f7b53e5d3b9ccbdf99eae76e903 /tools/lib/python/kdoc/python_version.py | |
| parent | sched: Move sched_class::prio_changed() into the change pattern (diff) | |
sched: Fix migrate_disable_switch() locking
For some reason migrate_disable_switch() was more complicated than it
needs to be, resulting in mind bending locking of dubious quality.
Recognise that migrate_disable_switch() must be called before a
context switch, but any place before that switch is equally good.
Since the current place results in troubled locking, simply move the
thing before taking rq->lock.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Juri Lelli <juri.lelli@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
