pmem: remove support for unstable PMEM devices
This functionality has never been used, is ugly and complicates the DMM design. Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
This commit is contained in:
committed by
Bryan Huntsman
parent
15187778e4
commit
7429cea50e
@@ -151,8 +151,6 @@ struct android_pmem_platform_data
|
||||
unsigned cached;
|
||||
/* The MSM7k has bits to enable a write buffer in the bus controller*/
|
||||
unsigned buffered;
|
||||
/* This PMEM is on memory that may be powered off */
|
||||
unsigned unstable;
|
||||
/* which memory type (i.e. SMI, EBI1) this PMEM device is backed by */
|
||||
unsigned memory_type;
|
||||
};
|
||||
|
||||
@@ -993,22 +993,6 @@ int remove_memory(u64 start, u64 size)
|
||||
return offline_pages(start_pfn, end_pfn, 120 * HZ);
|
||||
}
|
||||
|
||||
void reserve_hotplug_pages(unsigned long start_pfn, unsigned long nr_pages)
|
||||
{
|
||||
nr_pages = ((nr_pages + pageblock_nr_pages - 1) >> pageblock_order)
|
||||
<< pageblock_order;
|
||||
offline_isolated_pages(start_pfn, start_pfn + nr_pages);
|
||||
}
|
||||
|
||||
void unreserve_hotplug_pages(unsigned long start_pfn, unsigned long nr_pages)
|
||||
{
|
||||
unsigned long onlined_pages = 0;
|
||||
|
||||
nr_pages = ((nr_pages + pageblock_nr_pages - 1) >> pageblock_order)
|
||||
<< pageblock_order;
|
||||
online_pages_range(start_pfn, nr_pages, &onlined_pages);
|
||||
}
|
||||
|
||||
#else
|
||||
int remove_memory(u64 start, u64 size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user