Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133347
b: refs/heads/master
c: 7e6b6f2
h: refs/heads/master
i:
  133345: 5739099
  133343: 22dcde8
v: v3
  • Loading branch information
Paul Mundt committed Mar 18, 2009
1 parent 9b603d7 commit 1768613
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6bab7b5c18501e4dd3201ae8ac1dc6da5f07acc
refs/heads/master: 7e6b6f2b949a52382f59a93ecbe86e32e4fcec7c
6 changes: 6 additions & 0 deletions trunk/arch/sh/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/delay.h>
#include <linux/reboot.h>
#include <linux/numa.h>
#include <linux/ftrace.h>
#include <linux/suspend.h>
#include <asm/pgtable.h>
#include <asm/pgalloc.h>
Expand Down Expand Up @@ -78,6 +79,7 @@ void machine_kexec(struct kimage *image)
relocate_new_kernel_t rnk;
unsigned long entry;
unsigned long *ptr;
int save_ftrace_enabled;

/*
* Nicked from the mips version of machine_kexec():
Expand All @@ -97,6 +99,8 @@ void machine_kexec(struct kimage *image)
save_processor_state();
#endif

save_ftrace_enabled = __ftrace_enabled_save();

/* Interrupts aren't acceptable while we reboot */
local_irq_disable();

Expand Down Expand Up @@ -138,6 +142,8 @@ void machine_kexec(struct kimage *image)
*ptr = virt_to_phys(*ptr);
}
#endif

__ftrace_enabled_restore(save_ftrace_enabled);
}

void arch_crash_save_vmcoreinfo(void)
Expand Down

0 comments on commit 1768613

Please sign in to comment.