habanalabs/gaudi: move mmu_prepare to context init
authorOfir Bitton <obitton@habana.ai>
Wed, 30 Sep 2020 12:51:10 +0000 (15:51 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 30 Nov 2020 08:47:27 +0000 (10:47 +0200)
commit20b7525dc430aa97748c5ddaff9f791ce1022690
tree368a24b0473cab6c38f8a884809e325038bb6e28
parent23c15ae615175637ae4449aa6e64c0584474ddaa
habanalabs/gaudi: move mmu_prepare to context init

Currently mmu_prepare is located at context switch.
Since we support a single context, no reason to reconfigure
the MMU registers every context switch.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c