Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123139
b: refs/heads/master
c: 77733f8
h: refs/heads/master
i:
  123137: 5acb6bb
  123135: a9f2548
v: v3
  • Loading branch information
Anton Vorontsov authored and Paul Mackerras committed Dec 23, 2008
1 parent 0d03ec2 commit f3cd084
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e8e4f5b80e101da588af650de0ff6b3c475d6b3
refs/heads/master: 77733f8a33488307e7d4b9077d174647ecea92e1
21 changes: 9 additions & 12 deletions trunk/arch/powerpc/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ 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);
}

/*
Expand All @@ -33,11 +35,8 @@ int machine_kexec_prepare(struct kimage *image)
{
if (ppc_md.machine_kexec_prepare)
return ppc_md.machine_kexec_prepare(image);
/*
* Fail if platform doesn't provide its own machine_kexec_prepare
* implementation.
*/
return -ENOSYS;
else
return default_machine_kexec_prepare(image);
}

void machine_kexec_cleanup(struct kimage *image)
Expand All @@ -54,13 +53,11 @@ void machine_kexec(struct kimage *image)
{
if (ppc_md.machine_kexec)
ppc_md.machine_kexec(image);
else {
/*
* Fall back to normal restart if platform doesn't provide
* its own kexec function, and user insist to kexec...
*/
machine_restart(NULL);
}
else
default_machine_kexec(image);

/* Fall back to normal restart if we're still alive. */
machine_restart(NULL);
for(;;);
}

Expand Down

0 comments on commit f3cd084

Please sign in to comment.