m68knommu: add read_barrier_depends() and irqs_disabled_flags()

Previous thread: m68knommu: add ffs and __ffs plattform which support ISA A+ or ISA C by Linux Kernel Mailing List on Thursday, July 24, 2008 - 4:26 pm. (1 message)

Next thread: m68knommu: MCF5307 PIT GENERIC_CLOCKEVENTS support by Linux Kernel Mailing List on Thursday, July 24, 2008 - 4:27 pm. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, July 24, 2008 - 4:27 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6dbeb4...
Commit:     6dbeb456baaba05d60e7ca8213da26142062408a
Parent:     e872504b311cec52f7a316a0037fb959080dbea0
Author:     Sebastian Siewior <bigeasy@linutronix.de>
AuthorDate: Tue May 13 18:52:44 2008 +0200
Committer:  Greg Ungerer <gerg@uclinux.org>
CommitDate: Wed Jul 23 15:11:28 2008 +1000

    m68knommu: add read_barrier_depends() and irqs_disabled_flags()
    
    /home/bigeasy/git/linux-2.6-ftrace/kernel/trace/trace.c: In function 'tracing_generic_entry_update':
    /home/bigeasy/git/linux-2.6-ftrace/kernel/trace/trace.c:802: error: implicit declaration of function 'irqs_disabled_flags'
    make[3]: *** [kernel/trace/trace.o] Error 1
    /home/bigeasy/git/linux-2.6-ftrace/kernel/trace/ftrace.c: In function 'ftrace_list_func':
    /home/bigeasy/git/linux-2.6-ftrace/kernel/trace/ftrace.c:61: error: implicit declaration of function 'read_barrier_depends'
    
    Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
    Signed-off-by: Greg Ungerer <gerg@uclinux.org>
---
 include/asm-m68knommu/system.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/include/asm-m68knommu/system.h b/include/asm-m68knommu/system.h
index 64c6443..40f49de 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 /* ...
Previous thread: m68knommu: add ffs and __ffs plattform which support ISA A+ or ISA C by Linux Kernel Mailing List on Thursday, July 24, 2008 - 4:26 pm. (1 message)

Next thread: m68knommu: MCF5307 PIT GENERIC_CLOCKEVENTS support by Linux Kernel Mailing List on Thursday, July 24, 2008 - 4:27 pm. (1 message)