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:
Larry Bassel
2011-07-08 15:08:58 -07:00
committed by Bryan Huntsman
parent 15187778e4
commit 7429cea50e
2 changed files with 0 additions and 18 deletions

View File

@@ -151,8 +151,6 @@ struct android_pmem_platform_data
unsigned cached; unsigned cached;
/* The MSM7k has bits to enable a write buffer in the bus controller*/ /* The MSM7k has bits to enable a write buffer in the bus controller*/
unsigned buffered; 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 */ /* which memory type (i.e. SMI, EBI1) this PMEM device is backed by */
unsigned memory_type; unsigned memory_type;
}; };

View File

@@ -993,22 +993,6 @@ int remove_memory(u64 start, u64 size)
return offline_pages(start_pfn, end_pfn, 120 * HZ); 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 #else
int remove_memory(u64 start, u64 size) int remove_memory(u64 start, u64 size)
{ {