]> err.no Git - linux-2.6/commitdiff
[MIPS] Fix build errors related to wbflush.h on tx4927/tx4938.
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sun, 20 Aug 2006 13:55:52 +0000 (22:55 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 9 Oct 2006 22:20:48 +0000 (23:20 +0100)
TX49 CPUs have a SYNC instruction so that CONFIG_CPU_HAS_WB is no
longer needed.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/tx4927/common/tx4927_setup.c
arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_irq.c
arch/mips/tx4938/common/irq.c
arch/mips/tx4938/common/setup.c
arch/mips/tx4938/toshiba_rbtx4938/irq.c

index 3ace4037343e0ca8734a2ed47f259e4da2fd07e4..4658b2ae4833f81d46f8ee59aa6d7660d4723260 100644 (file)
@@ -53,19 +53,9 @@ void __init tx4927_time_init(void);
 void dump_cp0(char *key);
 
 
-void (*__wbflush) (void);
-
-static void tx4927_write_buffer_flush(void)
-{
-       __asm__ __volatile__
-           ("sync\n\t" "nop\n\t" "loop: bc0f loop\n\t" "nop\n\t");
-}
-
-
 void __init plat_mem_setup(void)
 {
        board_time_init = tx4927_time_init;
-       __wbflush = tx4927_write_buffer_flush;
 
 #ifdef CONFIG_TOSHIBA_RBTX4927
        {
index 3e24413d4c09c00b68589a2c83d8d6d2656bd4a7..0c3c3f6682300473a214ddf902ceb8ec347ea3ad 100644 (file)
@@ -129,6 +129,7 @@ JP7 is not bus master -- do NOT use -- only 4 pci bus master's allowed -- SouthB
 #include <asm/processor.h>
 #include <asm/reboot.h>
 #include <asm/time.h>
+#include <asm/wbflush.h>
 #include <linux/bootmem.h>
 #include <linux/blkdev.h>
 #ifdef CONFIG_RTC_DS1742
index b6024749b8f49c33287e22c9011a38e520015d0a..77fe2454f5b91f1509b8cc075f2faae183828473 100644 (file)
@@ -30,6 +30,7 @@
 #include <asm/irq.h>
 #include <asm/mipsregs.h>
 #include <asm/system.h>
+#include <asm/wbflush.h>
 #include <asm/tx4938/rbtx4938.h>
 
 /**********************************************************************************/
index 71859c4fee84779848dd4032ddf0c8500faeabeb..f415a1f18fba657c350c09c6ead11d0571e411ac 100644 (file)
@@ -41,29 +41,10 @@ void __init tx4938_setup(void);
 void __init tx4938_time_init(void);
 void dump_cp0(char *key);
 
-void (*__wbflush) (void);
-
-static void
-tx4938_write_buffer_flush(void)
-{
-       mmiowb();
-
-       __asm__ __volatile__(
-               ".set   push\n\t"
-               ".set   noreorder\n\t"
-               "lw     $0,%0\n\t"
-               "nop\n\t"
-               ".set   pop"
-               : /* no output */
-               : "m" (*(int *)KSEG1)
-               : "memory");
-}
-
 void __init
 plat_mem_setup(void)
 {
        board_time_init = tx4938_time_init;
-       __wbflush = tx4938_write_buffer_flush;
        toshiba_rbtx4938_setup();
 }
 
index bbb3390e98f76f2ad5fe128e4dfd24900a681117..102e473c10a28f1213e18f544d192a34785a8025 100644 (file)
@@ -83,6 +83,7 @@ IRQ  Device
 #include <asm/processor.h>
 #include <asm/reboot.h>
 #include <asm/time.h>
+#include <asm/wbflush.h>
 #include <linux/bootmem.h>
 #include <asm/tx4938/rbtx4938.h>