]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6231f7f808e863bfe14ac123a2aa08e68fceb72
tree6ebbecfc88e67ca1058e20d2a6c5c34d72db11d5
parent18f6961d34fa8ff1018496c890a97657903633a7
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