aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2008-08-15 03:40:26 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-08-15 11:35:43 -0400
commit3122c331190e9d1622bf1c8cf6ce3b17cca67c9e (patch)
treee856b7a59f5ea5ba4f1662cefdae267b26af30dd /kernel
parent9bdeb7b5d34f197dea7859d24475943395ffea5e (diff)
kexec jump: fix for ftrace
Ftrace depends on some processor state that we destroyed during kexec and restored by restore_processor_state(). So save_processor_state() and restore_processor_state() are moved into machine_kexec() and ftrace is restored after restore_processor_state(). Signed-off-by: Huang Ying <ying.huang@intel.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Vivek Goyal <vgoyal@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/kexec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c
index 17c80fdc453b..9fc6f7cbd8a8 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -1469,7 +1469,6 @@ int kernel_kexec(void)
1469 error = device_power_down(PMSG_FREEZE); 1469 error = device_power_down(PMSG_FREEZE);
1470 if (error) 1470 if (error)
1471 goto Enable_irqs; 1471 goto Enable_irqs;
1472 save_processor_state();
1473 } else 1472 } else
1474#endif 1473#endif
1475 { 1474 {
@@ -1482,7 +1481,6 @@ int kernel_kexec(void)
1482 1481
1483#ifdef CONFIG_KEXEC_JUMP 1482#ifdef CONFIG_KEXEC_JUMP
1484 if (kexec_image->preserve_context) { 1483 if (kexec_image->preserve_context) {
1485 restore_processor_state();
1486 device_power_up(PMSG_RESTORE); 1484 device_power_up(PMSG_RESTORE);
1487 Enable_irqs: 1485 Enable_irqs:
1488 local_irq_enable(); 1486 local_irq_enable();