]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/remoteproc/remoteproc_core.c
remoteproc: free carveout memories only after unmapping them
authorSuman Anna <s-anna@ti.com>
Mon, 1 Jul 2013 14:01:56 +0000 (17:01 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Mon, 1 Jul 2013 14:01:56 +0000 (17:01 +0300)
commitb6356a013a0933e42556c2def806f06caf459acf
tree6ebbecfc88e67ca1058e20d2a6c5c34d72db11d5
parente4760363ea14b7b707ba68ab780c8ecf98a84c15
remoteproc: free carveout memories only after unmapping them

It is not preferable to have the allocated pages for carveout
memories freed before they are unmapped. The code that deals
with the cleanup of carveout memories is therefore moved after
the corresponding mapping entries were cleaned up.

This is mostly a no-op since the remote processors are already
stopped when the cleanup function is called, but this will make
the cleanup code follow the exact reverse path of allocation.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c