]> 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)
commit587b02faae9d1fcfe3a25b38c01c4b27866a711e
treef63d39ccfd48697180790b4e5dd399315c13c611
parentd8554f084a07e30fac32d42f21e98715cb4379f6
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