mirror of https://github.com/thesofproject/sof.git
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 <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
1de8e74b9e
commit
03fb524f15
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue