diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2006-12-06 23:34:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:27 -0500 |
commit | 9a154d9d95b7b9845938242f5c62505b3cab5bcd (patch) | |
tree | fd3c51434298b139671f5accd42ab112a310555c /kernel/power/power.h | |
parent | 3aef83e0ef1ffb8ea3bea97be46821a45c952173 (diff) |
[PATCH] swsusp: add resume_offset command line parameter
Add the kernel command line parameter "resume_offset=" allowing us to specify
the offset, in <PAGE_SIZE> units, from the beginning of the partition pointed
to by the "resume=" parameter at which the swap header is located.
This offset can be determined, for example, by an application using the FIBMAP
ioctl to obtain the swap header's block number for given file.
[akpm@osdl.org: we don't know what type sector_t is]
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index 210ebba26020..adaf7d4fbdaf 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -42,6 +42,7 @@ extern const void __nosave_begin, __nosave_end; | |||
42 | extern unsigned long image_size; | 42 | extern unsigned long image_size; |
43 | extern int in_suspend; | 43 | extern int in_suspend; |
44 | extern dev_t swsusp_resume_device; | 44 | extern dev_t swsusp_resume_device; |
45 | extern sector_t swsusp_resume_block; | ||
45 | 46 | ||
46 | extern asmlinkage int swsusp_arch_suspend(void); | 47 | extern asmlinkage int swsusp_arch_suspend(void); |
47 | extern asmlinkage int swsusp_arch_resume(void); | 48 | extern asmlinkage int swsusp_arch_resume(void); |