* [PATCH] [IA64] kexec: Move machine_shutdown from machine_kexec.c to process.c
@ 2007-02-05 1:18 Horms
0 siblings, 0 replies; only message in thread
From: Horms @ 2007-02-05 1:18 UTC (permalink / raw)
To: linux-ia64
This moves the ia64 implementation of machine_shutdown() from
machine_kexec.c to process.c, which is in keeping with the implelmentation
on other architectures, and seems like a much more appropriate home for it.
Signed-off-by: Simon Horman <horms@verge.net.au>
Index: linux-2.6/arch/ia64/kernel/machine_kexec.c
=================================--- linux-2.6.orig/arch/ia64/kernel/machine_kexec.c 2006-12-18 12:56:04.000000000 +0900
+++ linux-2.6/arch/ia64/kernel/machine_kexec.c 2006-12-18 12:56:52.000000000 +0900
@@ -69,17 +69,6 @@
{
}
-void machine_shutdown(void)
-{
- int cpu;
-
- for_each_online_cpu(cpu) {
- if (cpu != smp_processor_id())
- cpu_down(cpu);
- }
- kexec_disable_iosapic();
-}
-
/*
* boot_param is used inside purgatory and purgatory runs
* in physical mode, so translate the addresses that purgatory
Index: linux-2.6/arch/ia64/kernel/process.c
=================================--- linux-2.6.orig/arch/ia64/kernel/process.c 2006-12-18 12:56:10.000000000 +0900
+++ linux-2.6/arch/ia64/kernel/process.c 2006-12-18 12:56:18.000000000 +0900
@@ -797,6 +797,17 @@
ia64_pal_halt(min_power_state);
}
+void machine_shutdown(void)
+{
+ int cpu;
+
+ for_each_online_cpu(cpu) {
+ if (cpu != smp_processor_id())
+ cpu_down(cpu);
+ }
+ kexec_disable_iosapic();
+}
+
void
machine_restart (char *restart_cmd)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-05 1:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-05 1:18 [PATCH] [IA64] kexec: Move machine_shutdown from machine_kexec.c to process.c Horms
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox