]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/domain.h
[PATCH] Make spinlock/rwlock annotations more accurate by using parameters, not types
[linux-2.6-omap-h63xx.git] / include / asm-arm / domain.h
index f8ea2de4848ea7ae075836718342952a86cda1d0..4c2885abbe6c950f04d06c6345bb6358f591421b 100644 (file)
@@ -50,6 +50,8 @@
 #define domain_val(dom,type)   ((type) << (2*(dom)))
 
 #ifndef __ASSEMBLY__
+
+#ifdef CONFIG_MMU
 #define set_domain(x)                                  \
        do {                                            \
        __asm__ __volatile__(                           \
        set_domain(thread->cpu_domain);                         \
        } while (0)
 
+#else
+#define set_domain(x)          do { } while (0)
+#define modify_domain(dom,type)        do { } while (0)
+#endif
+
 #endif
 #endif /* !__ASSEMBLY__ */