login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
7
Re: [PATCH 1/6] kexec jump: clean up #ifdef and comments
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Vivek Goyal
Subject:
Re: [PATCH 1/6] kexec jump: clean up #ifdef and comments
Date: Thursday, August 7, 2008 - 6:04 am
On Thu, Aug 07, 2008 at 05:05:23PM +0800, Huang Ying wrote:
quoted text
> Move if (kexec_image->preserve_context) { ... } into #ifdef > CONFIG_KEXEC_JUMP to make code looks cleaner. > > Fix no longer correct comments of kernel_kexec(). > > Signed-off-by: Huang Ying <ying.huang@intel.com> > > --- > kernel/kexec.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > > --- a/kernel/kexec.c > +++ b/kernel/kexec.c > @@ -1427,8 +1427,6 @@ static int __init crash_save_vmcoreinfo_ > module_init(crash_save_vmcoreinfo_init) > > /** > - * kernel_kexec - reboot the system > - * > * Move into place and start executing a preloaded standalone > * executable. If nothing was preloaded return an error. > */ > @@ -1443,8 +1441,8 @@ int kernel_kexec(void) > goto Unlock; > } > > - if (kexec_image->preserve_context) { > #ifdef CONFIG_KEXEC_JUMP > + if (kexec_image->preserve_context) { > mutex_lock(&pm_mutex); > pm_prepare_console(); > error = freeze_processes(); > @@ -1471,8 +1469,9 @@ int kernel_kexec(void) > if (error) > goto Enable_irqs; > save_processor_state(); > + } else > #endif > - } else { > + { > blocking_notifier_call_chain(&reboot_notifier_list, > SYS_RESTART, NULL); > system_state = SYSTEM_RESTART; > @@ -1484,8 +1483,8 @@ int kernel_kexec(void) > > machine_kexec(kexec_image); > > - if (kexec_image->preserve_context) { > #ifdef CONFIG_KEXEC_JUMP > + if (kexec_image->preserve_context) { > restore_processor_state(); > device_power_up(PMSG_RESTORE); > Enable_irqs: > @@ -1499,8 +1498,8 @@ int kernel_kexec(void) > Restore_console: > pm_restore_console(); > mutex_unlock(&pm_mutex); > -#endif > } > +#endif > > Unlock: > xchg(&kexec_lock, 0);
Thanks Huang. Looks good to me. Acked-by: Vivek Goyal <vgoyal@redhat.com> Thanks Vivek --
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:
[PATCH 1/6] kexec jump: clean up #ifdef and comments
, Huang Ying
, (Thu Aug 7, 2:05 am)
Re: [PATCH 1/6] kexec jump: clean up #ifdef and comments
, Pavel Machek
, (Thu Aug 7, 2:20 am)
Re: [PATCH 1/6] kexec jump: clean up #ifdef and comments
, Huang Ying
, (Thu Aug 7, 2:29 am)
Re: [PATCH 1/6] kexec jump: clean up #ifdef and comments
, Vivek Goyal
, (Thu Aug 7, 6:04 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Jan Engelhardt
Re: [PATCH] Allow Kconfig to set default mmap_min_addr protection
Dmitry Torokhov
Re: [2.6 patch] input/serio/hp_sdc.c section fix
Rafael J. Wysocki
[Bug #16380] Loop devices act strangely in 2.6.35
git
:
Steven Grimm
Using git as a general backup mechanism (was Re: Using GIT to store /etc)
Jeff King
Re: [PATCH] git-reset: allow --soft in a bare repo
Johannes Sixt
Re: [PATCH 01/14] msvc: Fix compilation errors in compat/win32/sys/poll.c
Johannes Schindelin
Re: [PATCH] Uninstall rule for top level Makefile
Shawn O. Pearce
Re: [PATCH v2] Speed up bash completion loading
git-commits-head
:
Linux Kernel Mailing List
cgroups: clean up cgroup_pidlist_find() a bit
Linux Kernel Mailing List
sony-laptop: Add support for extended hotkeys
Linux Kernel Mailing List
IB/core: Add support for masked atomic operations
Linux Kernel Mailing List
V4L/DVB (8939): cx18: fix sparse warnings
Linux Kernel Mailing List
ipv6 mcast: Check address family of gf_group in getsockopt(MS_FILTER).
linux-netdev
:
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Karsten Keil
[mISDN PATCH v2 05/19] Reduce stack size in dsp_cmx_send()
linux
Re: 2.6.23-rc8 network problem. Mem leak? ip1000a?
David Miller
Re: tun: Use netif_receive_skb instead of netif_rx
David Miller
Re: [net-next PATCH v2] llc enhancements
freebsd-current
:
Matthew Fleming
Re: [RFC] Outline of USB process integration in the kernel taskqueue system
illoai@gmail.com
Re: OT: 2d password
Hartmut Brandt
Re: problem with nss_ldap
Andrew Reilly
Re: FreeBSD's problems as seen by the BSDForen.de community
Max Laier
Re: Upcoming ABI Breakage in RELENG_7
Colocation donated by:
Syndicate