]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Fix mm_cpumask memory ordering comment
authorNicholas Piggin <npiggin@gmail.com>
Wed, 21 Apr 2021 15:17:32 +0000 (01:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Apr 2021 15:38:03 +0000 (01:38 +1000)
commitb6a05179817289aea938cb5f85e1d0dee3f1e7ce
treef63d39ccfd48697180790b4e5dd399315c13c611
parent8fe7454a7c37082524dd7ecdc72065701b4cbad2
powerpc/64s: Fix mm_cpumask memory ordering comment

The memory ordering comment no longer applies, because mm_ctx_id is
no longer used anywhere. At best always been difficult to follow.

It's better to consider the load on which the slbmte depends on, which
the MMU depends on before it can start loading TLBs, rather than a
store which may or may not have a subsequent dependency chain to the
slbmte.

So update the comment and we use the load of the mm's user context ID.
This is much more analogous the radix ordering too, which is good.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210421151733.212858-1-npiggin@gmail.com
arch/powerpc/mm/mmu_context.c