patch-2.3.34 linux/include/asm-ppc/cache.h

Next file: linux/include/asm-ppc/smp.h
Previous file: linux/include/asm-m68k/unistd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.33/linux/include/asm-ppc/cache.h linux/include/asm-ppc/cache.h
@@ -6,7 +6,6 @@
 
 #include <linux/config.h>
 #include <asm/processor.h>
-/*#include <asm/system.h>*/
 
 /* bytes per L1 cache line */
 #define        L1_CACHE_BYTES  32      
@@ -25,37 +24,6 @@
 
 #if defined(__KERNEL__) && !defined(__ASSEMBLY__)
 extern void flush_dcache_range(unsigned long start, unsigned long stop);
-
-static inline unsigned long unlock_dcache(void)
-{
-#ifndef CONFIG_8xx	
-	ulong hid0 = 0;
-	/* 601 doesn't do this */
-	if ( (ulong) _get_PVR() == 1 )
-		return 0;
-	asm("mfspr %0,1008 \n\t" : "=r" (hid0) );
-	if ( !(hid0 & HID0_DLOCK) )
-		return 0;
-	asm("mtspr 1008,%0 \n\t" :: "r" (hid0 & ~(HID0_DLOCK)));
-	return (hid0 & HID0_DLOCK) ? 1 : 0;
-#else /* ndef CONFIG_8xx */
-	return 0;
-#endif
-}
-
-static inline void lock_dcache(unsigned long lockit)
-{
-#ifndef CONFIG_8xx
-	/* 601 doesn't do this */
-	if ( !lockit || ((ulong) _get_PVR() == 1) )
-		return;
-	asm("mfspr	%0,1008 \n\t"
-	    "ori	%0,%0,%2 \n\t"
-	    "mtspr	1008,%0 \n\t"
-	    "sync \n\t isync \n\t"
-	    : "=r" (lockit) : "0" (lockit), "i" (HID0_DLOCK));
-#endif /* ndef CONFIG_8xx */
-}
 
 #endif /* __ASSEMBLY__ */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)