diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-23 17:24:26 +0000 | 
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-24 23:45:32 +0000 | 
| commit | bdd92c9ad287e03a2ec52f5a89c470cd5caae1c2 (patch) | |
| tree | 38d863507e900fb2ccac4c22fcf8934271c051b5 /arch/powerpc/kernel/machine_kexec.c | |
| parent | a37f2f87edc1b6e5932becf6e51535d36b690f2a (diff) | |
| parent | 8e934dbf264418afe4d1dff34ce074ecc14280db (diff) | |
| download | olio-linux-3.10-bdd92c9ad287e03a2ec52f5a89c470cd5caae1c2.tar.xz olio-linux-3.10-bdd92c9ad287e03a2ec52f5a89c470cd5caae1c2.zip  | |
Merge branch 'drm-intel-fixes' into drm-intel-next
Merge important suspend and resume regression fixes and resolve the
small conflict.
Conflicts:
	drivers/gpu/drm/i915/i915_dma.c
Diffstat (limited to 'arch/powerpc/kernel/machine_kexec.c')
| -rw-r--r-- | arch/powerpc/kernel/machine_kexec.c | 19 | 
1 files changed, 9 insertions, 10 deletions
diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c index df7e20c191c..49a170af814 100644 --- a/arch/powerpc/kernel/machine_kexec.c +++ b/arch/powerpc/kernel/machine_kexec.c @@ -15,6 +15,7 @@  #include <linux/memblock.h>  #include <linux/of.h>  #include <linux/irq.h> +#include <linux/ftrace.h>  #include <asm/machdep.h>  #include <asm/prom.h> @@ -44,10 +45,7 @@ void machine_kexec_mask_interrupts(void) {  void machine_crash_shutdown(struct pt_regs *regs)  { -	if (ppc_md.machine_crash_shutdown) -		ppc_md.machine_crash_shutdown(regs); -	else -		default_machine_crash_shutdown(regs); +	default_machine_crash_shutdown(regs);  }  /* @@ -65,8 +63,6 @@ int machine_kexec_prepare(struct kimage *image)  void machine_kexec_cleanup(struct kimage *image)  { -	if (ppc_md.machine_kexec_cleanup) -		ppc_md.machine_kexec_cleanup(image);  }  void arch_crash_save_vmcoreinfo(void) @@ -87,10 +83,13 @@ void arch_crash_save_vmcoreinfo(void)   */  void machine_kexec(struct kimage *image)  { -	if (ppc_md.machine_kexec) -		ppc_md.machine_kexec(image); -	else -		default_machine_kexec(image); +	int save_ftrace_enabled; + +	save_ftrace_enabled = __ftrace_enabled_save(); + +	default_machine_kexec(image); + +	__ftrace_enabled_restore(save_ftrace_enabled);  	/* Fall back to normal restart if we're still alive. */  	machine_restart(NULL);  |