]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: disable preemption around cache alias management calls
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 16 Nov 2020 09:38:59 +0000 (01:38 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 16 Nov 2020 10:13:16 +0000 (02:13 -0800)
commit6550c52d89e3e8a42e93194f89d95ae66b8fd901
treeaf225f8ce0d223856f331d27f095df864f6f6f1d
parentf5ded1d0f6655ee0959b685bc35d5d2e672de6a0
xtensa: disable preemption around cache alias management calls

Although cache alias management calls set up and tear down TLB entries
and fast_second_level_miss is able to restore TLB entry should it be
evicted they absolutely cannot preempt each other because they use the
same TLBTEMP area for different purposes.
Disable preemption around all cache alias management calls to enforce
that.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/mm/cache.c