login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
2
Re: [2.6 patch] kernel/power/: move function prototypes to header
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Rafael J. Wysocki
Subject:
Re: [2.6 patch] kernel/power/: move function prototypes to header
Date: Friday, November 2, 2007 - 1:35 pm
On Friday, 2 November 2007 16:44, Adrian Bunk wrote:
quoted text
> This patch moves the prototypes of count_highmem_pages() and > restore_highmem() to kernel/power/power.h > > Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Rafael J. Wysocki <rjw@sisk.p>
quoted text
> --- > > kernel/power/power.h | 8 ++++++++ > kernel/power/snapshot.c | 1 - > kernel/power/swsusp.c | 8 -------- > 3 files changed, 8 insertions(+), 9 deletions(-) > > 20af06052a0203d9e60b4937282793900c756182 > diff --git a/kernel/power/power.h b/kernel/power/power.h > index 195dc46..3fe1e7f 100644 > --- a/kernel/power/power.h > +++ b/kernel/power/power.h > @@ -211,3 +211,11 @@ static inline int pm_notifier_call_chain(unsigned long val) > return (blocking_notifier_call_chain(&pm_chain_head, val, NULL) > == NOTIFY_BAD) ? -EINVAL : 0; > } > + > +#ifdef CONFIG_HIGHMEM > +unsigned int count_highmem_pages(void); > +int restore_highmem(void); > +#else > +static inline unsigned int count_highmem_pages(void) { return 0; } > +static inline int restore_highmem(void) { return 0; } > +#endif > diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c > index 78039b4..d9ed1ff 100644 > --- a/kernel/power/snapshot.c > +++ b/kernel/power/snapshot.c > @@ -872,7 +872,6 @@ unsigned int count_highmem_pages(void) > } > #else > static inline void *saveable_highmem_page(unsigned long pfn) { return NULL; } > -static inline unsigned int count_highmem_pages(void) { return 0; } > #endif /* CONFIG_HIGHMEM */ > > /** > diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c > index e1722d3..605c536 100644 > --- a/kernel/power/swsusp.c > +++ b/kernel/power/swsusp.c > @@ -64,14 +64,6 @@ unsigned long image_size = 500 * 1024 * 1024; > > int in_suspend __nosavedata = 0; > > -#ifdef CONFIG_HIGHMEM > -unsigned int count_highmem_pages(void); > -int restore_highmem(void); > -#else > -static inline int restore_highmem(void) { return 0; } > -static inline unsigned int count_highmem_pages(void) { return 0; } > -#endif > - > /** > * The following functions are used for tracing the allocated > * swap pages, so that they can be freed in case of an error. > > >
-- "Premature optimization is the root of all evil." - Donald Knuth -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[2.6 patch] kernel/power/: move function prototypes to header
, Adrian Bunk
, (Fri Nov 2, 8:44 am)
Re: [2.6 patch] kernel/power/: move function prototypes to ...
, Rafael J. Wysocki
, (Fri Nov 2, 1:35 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #11407] suspend: unable to handle kernel paging request
Christoph Lameter
Re: [bug] SLUB + mm/slab.c boot crash in -rc9
Jörn
Re: [00/41] Large Blocksize Support V7 (adds memmap support)
Jeremy Fitzhardinge
Re: [2.6.25] compat VDSO option not disabling
Rafael J. Wysocki
[Bug #11551] Semi-repeatable hard lockup on 2.6.27-rc6
linux-netdev
:
William Allen Simpson
[net-next-2.6 PATCH v8 0/7] TCPCT part 1: cookie option exchange
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
git
:
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Frans Pop
'git gc --aggressive' effectively unusable
Stephan Beyer
Re: git sequencer prototype
Lynn Lin
Re: clearcase migration to git
Johannes Schindelin
Re: [PATCH 2/3] unpack-trees: fix path search bug in verify_absent
openbsd-misc
:
nixlists
Re: Which laptops do the developers use?
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Robert
disklabel - cylinder rounding
Henning Brauer
Re: pf: reassemble tcp
git-commits-head
:
Linux Kernel Mailing List
sparc64: Fix sun4u execute bit check in TSB I-TLB load.
Linux Kernel Mailing List
init: Open /dev/console from rootfs
Linux Kernel Mailing List
Remove empty comment in acpi/power.c
Linux Kernel Mailing List
x86 boot: only pick up additional EFI memmap if add_efi_memmap flag
Linux Kernel Mailing List
udp: fix for unicast RX path optimization
Colocation donated by:
Syndicate