Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 103354
Collapse All | Expand All

(-)kernel/power/snapshot.c (-1 / +5 lines)
Lines 35-42 Link Here
35
35
36
struct pbe *pagedir_nosave;
36
struct pbe *pagedir_nosave;
37
unsigned int nr_copy_pages;
37
unsigned int nr_copy_pages;
38
39
#ifdef CONFIG_SUSPEND2
38
extern int suspend2_running;
40
extern int suspend2_running;
39
void suspend_post_context_save(void);
41
void suspend_post_context_save(void);
42
#endif
40
43
41
#ifdef CONFIG_HIGHMEM
44
#ifdef CONFIG_HIGHMEM
42
unsigned int count_highmem_pages(void)
45
unsigned int count_highmem_pages(void)
Lines 472-482 Link Here
472
{
475
{
473
	unsigned int nr_pages;
476
	unsigned int nr_pages;
474
477
478
#ifdef CONFIG_SUSPEND2
475
	if (suspend2_running) {
479
	if (suspend2_running) {
476
		suspend_post_context_save();
480
		suspend_post_context_save();
477
		return 0;
481
		return 0;
478
	}
482
	}
479
483
#endif
480
	pr_debug("swsusp: critical section: \n");
484
	pr_debug("swsusp: critical section: \n");
481
485
482
	drain_local_pages();
486
	drain_local_pages();

Return to bug 103354