Skip to content

Commit

Permalink
Automatic merge of 'fixes-test' into merge-test (2023-10-22 12:35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpe committed Oct 22, 2023
2 parents d218b84 + f9bc9bb commit 1a6e74a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/lib/qspinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ static __always_inline bool yield_to_prev(struct qspinlock *lock, struct qnode *
if ((yield_count & 1) == 0)
goto yield_prev; /* owner vcpu is running */

if (get_owner_cpu(READ_ONCE(lock->val)) != yield_cpu)
goto yield_prev; /* re-sample lock owner */

spin_end();

preempted = true;
Expand Down
9 changes: 1 addition & 8 deletions arch/powerpc/mm/book3s64/radix_tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,14 +1212,7 @@ void radix__tlb_flush(struct mmu_gather *tlb)

smp_mb(); /* see radix__flush_tlb_mm */
exit_flush_lazy_tlbs(mm);
_tlbiel_pid(mm->context.id, RIC_FLUSH_ALL);

/*
* It should not be possible to have coprocessors still
* attached here.
*/
if (WARN_ON_ONCE(atomic_read(&mm->context.copros) > 0))
__flush_all_mm(mm, true);
__flush_all_mm(mm, true);

preempt_enable();
} else {
Expand Down

0 comments on commit 1a6e74a

Please sign in to comment.