lkml.org 
[lkml]   [2009]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[RFC PATCH 0/2] allow bootmem to be freed to allocator late
Currently there is no way to release bootmem once the bootmem allocator
frees all unreserved memory. This adds the ability to free reserved
pages directly to the page allocator after the bootmem allocator metadata
is already freed. It's limited in scope since it's still all marked
__init, and creates a new entry point free_bootmem_late rather than
trying to do this automatically in free_bootmem. Hence the RFC...

With this we are able to do something like allocate swiotlb, and then
free it later if we discover we had a hw iommu that doesn't need swiotlb.

include/linux/bootmem.h | 1 +
mm/bootmem.c | 98 ++++++++++++++++++++++++++++++++++++----------
2 files changed, 77 insertions(+), 22 deletions(-)

thanks,
-chris


\
 
 \ /
  Last update: 2009-10-23 19:15    [W:0.122 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site