From 03fb524f1569e4c31b573638e129ab4d51e46b33 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 7 Jan 2022 14:50:40 +0100 Subject: [PATCH] heap: remove unused mm_pm_context_{save,restore}() mm_pm_context_save() and mm_pm_context_restore() are never used, remove them. Signed-off-by: Guennadi Liakhovetski --- src/include/sof/lib/mm_heap.h | 2 -- src/ipc/ipc3/handler.c | 3 --- src/lib/alloc.c | 19 ------------------- 3 files changed, 24 deletions(-) diff --git a/src/include/sof/lib/mm_heap.h b/src/include/sof/lib/mm_heap.h index 1d570863b..aa56f2882 100644 --- a/src/include/sof/lib/mm_heap.h +++ b/src/include/sof/lib/mm_heap.h @@ -83,8 +83,6 @@ struct mm { /* Heap save/restore contents and context for PM D0/D3 events */ uint32_t mm_pm_context_size(void); -int mm_pm_context_save(struct dma_copy *dc, struct dma_sg_config *sg); -int mm_pm_context_restore(struct dma_copy *dc, struct dma_sg_config *sg); /* heap initialisation */ void init_heap(struct sof *sof); diff --git a/src/ipc/ipc3/handler.c b/src/ipc/ipc3/handler.c index 020f22538..36c9266f0 100644 --- a/src/ipc/ipc3/handler.c +++ b/src/ipc/ipc3/handler.c @@ -633,9 +633,6 @@ static int ipc_pm_context_save(uint32_t header) /* TODO: mask ALL platform interrupts except DMA */ - /* TODO now save the context - create SG buffer config using */ - //mm_pm_context_save(struct dma_sg_config *sg); - /* mask all DSP interrupts */ arch_interrupt_disable_mask(0xffffffff); diff --git a/src/lib/alloc.c b/src/lib/alloc.c index 629129f19..ccaff0a22 100644 --- a/src/lib/alloc.c +++ b/src/lib/alloc.c @@ -1035,25 +1035,6 @@ uint32_t mm_pm_context_size(void) return 0; } -/* - * Save the DSP memories that are in use the system and modules. - * All pipeline and modules must be disabled before calling this functions. - * No allocations are permitted after calling this and before calling restore. - */ -int mm_pm_context_save(struct dma_copy *dc, struct dma_sg_config *sg) -{ - return -ENOTSUP; -} - -/* - * Restore the DSP memories to modules and the system. - * This must be called immediately after booting before any pipeline work. - */ -int mm_pm_context_restore(struct dma_copy *dc, struct dma_sg_config *sg) -{ - return -ENOTSUP; -} - void free_heap(enum mem_zone zone) { struct mm *memmap = memmap_get();