]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: split mmu/no-mmu code paths in memory ioctl
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 4 Apr 2019 11:42:26 +0000 (14:42 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 4 Apr 2019 11:42:26 +0000 (14:42 +0300)
commit487337dce0f699070ad1b7cc5da1058cfa1e0e2e
treefd449bcaf4c278c24d33788235215eb662866191
parentf8d0cc1596c8c2b45ee799ccd37a2668f89d55f3
habanalabs: split mmu/no-mmu code paths in memory ioctl

To make the memory ioctl code more readable, this patch moves the
legacy/debug code path of mmu-disabled to a separate function, which is
called (if necessary) from the main memory ioctl function.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/memory.c