]> asedeno.scripts.mit.edu Git - linux.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)
commit54303a1aef95b0cbd6a04c3b729c93da7a58e0f7
treefd449bcaf4c278c24d33788235215eb662866191
parent295938406cbcb541de8893d0280a2265c41e506d
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