diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2011-08-27 09:43:54 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2011-08-27 10:06:11 -0400 |
commit | 7b1bb388bc879ffcc6c69b567816d5c354afe42b (patch) | |
tree | 5a217fdfb0b5e5a327bdcd624506337c1ae1fe32 /kernel/power/power.h | |
parent | 7d754596756240fa918b94cd0c3011c77a638987 (diff) | |
parent | 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe (diff) |
Merge 'Linux v3.0' into Litmus
Some notes:
* Litmus^RT scheduling class is the topmost scheduling class
(above stop_sched_class).
* scheduler_ipi() function (e.g., in smp_reschedule_interrupt())
may increase IPI latencies.
* Added path into schedule() to quickly re-evaluate scheduling
decision without becoming preemptive again. This used to be
a standard path before the removal of BKL.
Conflicts:
Makefile
arch/arm/kernel/calls.S
arch/arm/kernel/smp.c
arch/x86/include/asm/unistd_32.h
arch/x86/kernel/smp.c
arch/x86/kernel/syscall_table_32.S
include/linux/hrtimer.h
kernel/printk.c
kernel/sched.c
kernel/sched_fair.c
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index 006270fe382d..9a00a0a26280 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -14,6 +14,10 @@ struct swsusp_info { | |||
14 | } __attribute__((aligned(PAGE_SIZE))); | 14 | } __attribute__((aligned(PAGE_SIZE))); |
15 | 15 | ||
16 | #ifdef CONFIG_HIBERNATION | 16 | #ifdef CONFIG_HIBERNATION |
17 | /* kernel/power/snapshot.c */ | ||
18 | extern void __init hibernate_reserved_size_init(void); | ||
19 | extern void __init hibernate_image_size_init(void); | ||
20 | |||
17 | #ifdef CONFIG_ARCH_HIBERNATION_HEADER | 21 | #ifdef CONFIG_ARCH_HIBERNATION_HEADER |
18 | /* Maximum size of architecture specific data in a hibernation header */ | 22 | /* Maximum size of architecture specific data in a hibernation header */ |
19 | #define MAX_ARCH_HEADER_SIZE (sizeof(struct new_utsname) + 4) | 23 | #define MAX_ARCH_HEADER_SIZE (sizeof(struct new_utsname) + 4) |
@@ -49,7 +53,12 @@ static inline char *check_image_kernel(struct swsusp_info *info) | |||
49 | extern int hibernation_snapshot(int platform_mode); | 53 | extern int hibernation_snapshot(int platform_mode); |
50 | extern int hibernation_restore(int platform_mode); | 54 | extern int hibernation_restore(int platform_mode); |
51 | extern int hibernation_platform_enter(void); | 55 | extern int hibernation_platform_enter(void); |
52 | #endif | 56 | |
57 | #else /* !CONFIG_HIBERNATION */ | ||
58 | |||
59 | static inline void hibernate_reserved_size_init(void) {} | ||
60 | static inline void hibernate_image_size_init(void) {} | ||
61 | #endif /* !CONFIG_HIBERNATION */ | ||
53 | 62 | ||
54 | extern int pfn_is_nosave(unsigned long); | 63 | extern int pfn_is_nosave(unsigned long); |
55 | 64 | ||
@@ -65,6 +74,8 @@ static struct kobj_attribute _name##_attr = { \ | |||
65 | 74 | ||
66 | /* Preferred image size in bytes (default 500 MB) */ | 75 | /* Preferred image size in bytes (default 500 MB) */ |
67 | extern unsigned long image_size; | 76 | extern unsigned long image_size; |
77 | /* Size of memory reserved for drivers (default SPARE_PAGES x PAGE_SIZE) */ | ||
78 | extern unsigned long reserved_size; | ||
68 | extern int in_suspend; | 79 | extern int in_suspend; |
69 | extern dev_t swsusp_resume_device; | 80 | extern dev_t swsusp_resume_device; |
70 | extern sector_t swsusp_resume_block; | 81 | extern sector_t swsusp_resume_block; |
@@ -134,6 +145,7 @@ extern int swsusp_swap_in_use(void); | |||
134 | * the image header. | 145 | * the image header. |
135 | */ | 146 | */ |
136 | #define SF_PLATFORM_MODE 1 | 147 | #define SF_PLATFORM_MODE 1 |
148 | #define SF_NOCOMPRESS_MODE 2 | ||
137 | 149 | ||
138 | /* kernel/power/hibernate.c */ | 150 | /* kernel/power/hibernate.c */ |
139 | extern int swsusp_check(void); | 151 | extern int swsusp_check(void); |