Commit 2d3a2291 authored by Patrick Mochel's avatar Patrick Mochel

[power] Make swsusp-only mm functions available when CONFIG_PM=y


Calls were moved to the PM core, so they must be compiled in to use them.
parent 835ff890
...@@ -388,7 +388,7 @@ static int rmqueue_bulk(struct zone *zone, unsigned int order, ...@@ -388,7 +388,7 @@ static int rmqueue_bulk(struct zone *zone, unsigned int order,
return allocated; return allocated;
} }
#ifdef CONFIG_SOFTWARE_SUSPEND #ifdef CONFIG_PM
int is_head_of_free_region(struct page *page) int is_head_of_free_region(struct page *page)
{ {
struct zone *zone = page_zone(page); struct zone *zone = page_zone(page);
...@@ -435,7 +435,7 @@ void drain_local_pages(void) ...@@ -435,7 +435,7 @@ void drain_local_pages(void)
} }
local_irq_restore(flags); local_irq_restore(flags);
} }
#endif /* CONFIG_SOFTWARE_SUSPEND */ #endif /* CONFIG_PM */
/* /*
* Free a 0-order page * Free a 0-order page
......
...@@ -1068,7 +1068,7 @@ void wakeup_kswapd(struct zone *zone) ...@@ -1068,7 +1068,7 @@ void wakeup_kswapd(struct zone *zone)
wake_up_interruptible(&zone->zone_pgdat->kswapd_wait); wake_up_interruptible(&zone->zone_pgdat->kswapd_wait);
} }
#ifdef CONFIG_SOFTWARE_SUSPEND #ifdef CONFIG_PM
/* /*
* Try to free `nr_pages' of memory, system-wide. Returns the number of freed * Try to free `nr_pages' of memory, system-wide. Returns the number of freed
* pages. * pages.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment