habanalabs: allow disabling huge page use
authorOded Gabbay <ogabbay@kernel.org>
Tue, 29 Jun 2021 15:23:41 +0000 (18:23 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 29 Aug 2021 06:47:45 +0000 (09:47 +0300)
commitfbcd0efefc7e32f2acb9ca5d9196306dfa3da880
treec0071b2e5a0b8cd8e659b2811b17021507c2c8ff
parent00ce06539c068929f239dd1b338267b3403e8b93
habanalabs: allow disabling huge page use

Sometimes we may need to disable optimization of using huge pages
in our memory management code. Add such a flag to the function that
creates the list of physical pages that would be programmed into the
device MMU.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/memory.c