]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] Celleb: Move pause, kexec_cpu_down to beat.c
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>
Tue, 2 Oct 2007 08:18:46 +0000 (18:18 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 3 Oct 2007 03:25:28 +0000 (13:25 +1000)
This is an update for "Beat on Celleb"
  - Move beat_pause(), beat_kexec_cpu_down() from setup.c to beat.c

Signed-off-by: <Kou.Ishizaki@toshiba.co.jp>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/celleb/beat.c
arch/powerpc/platforms/celleb/beat.h
arch/powerpc/platforms/celleb/setup.c

index 99341ce8a6978cdcad8dd309fd277e677cd29732..ced6f68c7b0beac2d3944796a7c7027fe835c61b 100644 (file)
@@ -158,6 +158,18 @@ int64_t beat_put_term_char(u64 vterm, u64 len, u64 t1, u64 t2)
        return beat_put_characters_to_console(vterm, len, (u8*)db);
 }
 
+void beat_power_save(void)
+{
+       beat_pause(0);
+}
+
+#ifdef CONFIG_KEXEC
+void beat_kexec_cpu_down(int crash, int secondary)
+{
+       beatic_deinit_IRQ();
+}
+#endif
+
 EXPORT_SYMBOL(beat_get_term_char);
 EXPORT_SYMBOL(beat_put_term_char);
 EXPORT_SYMBOL(beat_halt_code);
index 2b16bf3bee893cd198aae9637c2f39b984a820e2..b2e292df13ca25792b283bc7655bce2c9486e72f 100644 (file)
@@ -36,5 +36,7 @@ ssize_t beat_nvram_get_size(void);
 ssize_t beat_nvram_read(char *, size_t, loff_t *);
 ssize_t beat_nvram_write(char *, size_t, loff_t *);
 int beat_set_xdabr(unsigned long);
+void beat_power_save(void);
+void beat_kexec_cpu_down(int, int);
 
 #endif /* _CELLEB_BEAT_H */
index 1fca3f23533bc93f9877a9328abda8df419553e4..a2180aa509d99d254d99682295f84ba579a95630 100644 (file)
@@ -111,11 +111,6 @@ static void __init celleb_setup_arch(void)
 #endif
 }
 
-static void beat_power_save(void)
-{
-       beat_pause(0);
-}
-
 static int __init celleb_probe(void)
 {
        unsigned long root = of_get_flat_dt_root();
@@ -128,13 +123,6 @@ static int __init celleb_probe(void)
        return 1;
 }
 
-#ifdef CONFIG_KEXEC
-static void celleb_kexec_cpu_down(int crash, int secondary)
-{
-       beatic_deinit_IRQ();
-}
-#endif
-
 static struct of_device_id celleb_bus_ids[] __initdata = {
        { .type = "scc", },
        { .type = "ioif", },    /* old style */
@@ -175,7 +163,7 @@ define_machine(celleb) {
        .pci_probe_mode         = celleb_pci_probe_mode,
        .pci_setup_phb          = celleb_setup_phb,
 #ifdef CONFIG_KEXEC
-       .kexec_cpu_down         = celleb_kexec_cpu_down,
+       .kexec_cpu_down         = beat_kexec_cpu_down,
        .machine_kexec          = default_machine_kexec,
        .machine_kexec_prepare  = default_machine_kexec_prepare,
        .machine_crash_shutdown = default_machine_crash_shutdown,