arch/tile: properly export __mb_incoherent for modules
authorChris Metcalf <cmetcalf@tilera.com>
Thu, 14 Oct 2010 19:12:55 +0000 (15:12 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Thu, 14 Oct 2010 19:12:55 +0000 (15:12 -0400)
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/system.h
arch/tile/lib/exports.c

index f749be3..96779c8 100644 (file)
 #define get_cycles_low() __insn_mfspr(SPR_CYCLE)   /* just get all 64 bits */
 #endif
 
+#if !CHIP_HAS_MF_WAITS_FOR_VICTIMS()
+int __mb_incoherent(void);  /* Helper routine for mb_incoherent(). */
+#endif
+
 /* Fence to guarantee visibility of stores to incoherent memory. */
 static inline void
 mb_incoherent(void)
@@ -97,7 +101,6 @@ mb_incoherent(void)
 
 #if !CHIP_HAS_MF_WAITS_FOR_VICTIMS()
        {
-               int __mb_incoherent(void);
 #if CHIP_HAS_TILE_WRITE_PENDING()
                const unsigned long WRITE_TIMEOUT_CYCLES = 400;
                unsigned long start = get_cycles_low();
index ce5dbf5..1509c55 100644 (file)
@@ -45,6 +45,9 @@ EXPORT_SYMBOL(__copy_from_user_zeroing);
 EXPORT_SYMBOL(__copy_in_user_inatomic);
 #endif
 
+/* arch/tile/lib/mb_incoherent.S */
+EXPORT_SYMBOL(__mb_incoherent);
+
 /* hypervisor glue */
 #include <hv/hypervisor.h>
 EXPORT_SYMBOL(hv_dev_open);