Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46246
b: refs/heads/master
c: c237508
h: refs/heads/master
v: v3
  • Loading branch information
Horms authored and Tony Luck committed Feb 5, 2007
1 parent 0e04247 commit 9f15fa6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 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: 9473252f20e8482464415d9030b3957b5593796d
refs/heads/master: c237508afa5d47282d3047784864013eebdc68ab
13 changes: 0 additions & 13 deletions trunk/arch/ia64/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,6 @@ void machine_kexec_cleanup(struct kimage *image)
{
}

void machine_shutdown(void)
{
#ifdef CONFIG_HOTPLUG_CPU
int cpu;

for_each_online_cpu(cpu) {
if (cpu != smp_processor_id())
cpu_down(cpu);
}
#endif
kexec_disable_iosapic();
}

/*
* Do not allocate memory (or fail in any way) in machine_kexec().
* We are past the point of no return, committed to rebooting now.
Expand Down
16 changes: 16 additions & 0 deletions trunk/arch/ia64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <asm/ia32.h>
#include <asm/irq.h>
#include <asm/kdebug.h>
#include <asm/kexec.h>
#include <asm/pgalloc.h>
#include <asm/processor.h>
#include <asm/sal.h>
Expand Down Expand Up @@ -803,6 +804,21 @@ cpu_halt (void)
ia64_pal_halt(min_power_state);
}

void machine_shutdown(void)
{
#ifdef CONFIG_HOTPLUG_CPU
int cpu;

for_each_online_cpu(cpu) {
if (cpu != smp_processor_id())
cpu_down(cpu);
}
#endif
#ifdef CONFIG_KEXEC
kexec_disable_iosapic();
#endif
}

void
machine_restart (char *restart_cmd)
{
Expand Down

0 comments on commit 9f15fa6

Please sign in to comment.