X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-m68knommu%2Fsystem.h;h=40f49de69821df7c98f523bf32800228ace3d339;hb=414f746d232d41ed6ae8632c4495ae795373c44b;hp=64c64432bbb80248c44ddfc34a6cc98beff938e1;hpb=11d64be6a631236b3b3d21711c7d1a83d9f85904;p=linux-2.6 diff --git a/include/asm-m68knommu/system.h b/include/asm-m68knommu/system.h index 64c64432bb..40f49de698 100644 --- a/include/asm-m68knommu/system.h +++ b/include/asm-m68knommu/system.h @@ -118,6 +118,8 @@ asmlinkage void resume(void); #define smp_read_barrier_depends() do { } while(0) #endif +#define read_barrier_depends() ((void)0) + #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) struct __xchg_dummy { unsigned long a[100]; }; @@ -310,4 +312,13 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz #endif #define arch_align_stack(x) (x) + +static inline int irqs_disabled_flags(unsigned long flags) +{ + if (flags & 0x0700) + return 0; + else + return 1; +} + #endif /* _M68KNOMMU_SYSTEM_H */