2 * kernel/power/tuxonice_prepare_image.h
4 * Copyright (C) 2003-2008 Nigel Cunningham (nigel at tuxonice net)
6 * This file is released under the GPLv2.
10 #include <asm/sections.h>
12 extern int toi_prepare_image(void);
13 extern void toi_recalculate_image_contents(int storage_available
);
14 extern long real_nr_free_pages(unsigned long zone_idx_mask
);
15 extern int image_size_limit
;
16 extern void toi_free_extra_pagedir_memory(void);
17 extern long extra_pd1_pages_allowance
;
18 extern void free_attention_list(void);
20 #define MIN_FREE_RAM 100
21 #define MIN_EXTRA_PAGES_ALLOWANCE 500
23 #define all_zones_mask ((unsigned long) ((1 << MAX_NR_ZONES) - 1))
25 #define real_nr_free_high_pages() (real_nr_free_pages(1 << ZONE_HIGHMEM))
26 #define real_nr_free_low_pages() (real_nr_free_pages(all_zones_mask - \
29 #define real_nr_free_high_pages() (0)
30 #define real_nr_free_low_pages() (real_nr_free_pages(all_zones_mask))
32 /* For eat_memory function */
33 #define ZONE_HIGHMEM (MAX_NR_ZONES + 1)