[PATCH] [IA64] kexec: Move machine_shutdown from machine_kexec.c to process.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>

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)
 {
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux