X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-sparc%2Fsystem.h;h=d1a2572e3f553d8a58da30e10b0f0ac84da477af;hb=c41917df8a1adde34864116ce2231a7fe308d2ff;hp=100c3eaf3c1fe439713ccedab0ea8c0e87459067;hpb=52393ccc0a53c130f31fbbdb8b40b2aadb55ee72;p=linux-2.6 diff --git a/include/asm-sparc/system.h b/include/asm-sparc/system.h index 100c3eaf3c..d1a2572e3f 100644 --- a/include/asm-sparc/system.h +++ b/include/asm-sparc/system.h @@ -11,6 +11,7 @@ #include #include #include +#include #ifndef __ASSEMBLY__ @@ -163,16 +164,6 @@ extern void fpsave(unsigned long *fpregs, unsigned long *fsr, "o0", "o1", "o2", "o3", "o7"); \ } while(0) -/* - * On SMP systems, when the scheduler does migration-cost autodetection, - * it needs a way to flush as much of the CPU's caches as possible. - * - * TODO: fill this in! - */ -static inline void sched_cacheflush(void) -{ -} - /* * Changing the IRQ level on the Sparc. */ @@ -241,7 +232,6 @@ static inline unsigned long xchg_u32(__volatile__ unsigned long *m, unsigned lon } #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) -#define tas(ptr) (xchg((ptr),1)) extern void __xchg_called_with_bad_pointer(void);