On 9/23/21 9:43 AM, Mike Rapoport wrote:
> From: Mike Rapoport <r...@linux.ibm.com>
> 
> For ages memblock_free() interface dealt with physical addresses even
> despite the existence of memblock_alloc_xx() functions that return a
> virtual pointer.
> 
> Introduce memblock_phys_free() for freeing physical ranges and repurpose
> memblock_free() to free virtual pointers to make the following pairing
> abundantly clear:
> 
>       int memblock_phys_free(phys_addr_t base, phys_addr_t size);
>       phys_addr_t memblock_phys_alloc(phys_addr_t base, phys_addr_t size);
> 
>       void *memblock_alloc(phys_addr_t size, phys_addr_t align);
>       void memblock_free(void *ptr, size_t size);
> 
> Replace intermediate memblock_free_ptr() with memblock_free() and drop
> unnecessary aliases memblock_free_early() and memblock_free_early_nid().
> 
> Suggested-by: Linus Torvalds <torva...@linux-foundation.org>
> Signed-off-by: Mike Rapoport <r...@linux.ibm.com>

arch/arc part: Reviewed-by: Shahab Vahedi <sha...@synopsys.com>


Thanks,
Shahab
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

Reply via email to