Эх сурвалжийг харах

ubwcp: Switch to using offline_and_remove_memory

remove_memory doesn't work when memory hotplug has been enabled, switch
to using offline_and_remove_memory.

Change-Id: Ia62efc9394326cde5bb0a5dd76ba811f9b1d4b17
Signed-off-by: Liam Mark <[email protected]>
Liam Mark 2 жил өмнө
parent
commit
bbc9e0b644
1 өөрчлөгдсөн 5 нэмэгдсэн , 4 устгасан
  1. 5 4
      ubwcp/ubwcp.c

+ 5 - 4
ubwcp/ubwcp.c

@@ -1842,15 +1842,16 @@ static int ubwcp_free_buffer(struct dma_buf *dmabuf)
 		 * care of flush. Just a note for now. Might need to add the
 		 * flush here for debug purpose.
 		 */
-		DBG("Calling remove_memory() for ULA PA pool");
-		ret = remove_memory(ubwcp->ula_pool_base, ubwcp->ula_pool_size);
+		DBG("Calling offline_and_remove_memory() for ULA PA pool");
+		ret = offline_and_remove_memory(ubwcp->ula_pool_base,
+				ubwcp->ula_pool_size);
 		if (ret) {
-			ERR("remove_memory failed st:0x%lx sz:0x%lx err: %d",
+			ERR("offline_and_remove_memory failed st:0x%lx sz:0x%lx err: %d",
 				ubwcp->ula_pool_base,
 				ubwcp->ula_pool_size, ret);
 			goto err_remove_mem;
 		} else {
-			DBG("DONE: calling remove_memory() for ULA PA pool");
+			DBG("DONE: calling offline_and_remove_memory() for ULA PA pool");
 		}
 		DBG("Don't Call power OFF ...");
 	}