]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/domain.h
[ARM] 4758/1: [AT91] LEDs
[linux-2.6-omap-h63xx.git] / include / asm-arm / domain.h
index f8ea2de4848ea7ae075836718342952a86cda1d0..3c12a7625304d24d19bcb9e469c5b5bbcca8faef 100644 (file)
 #define domain_val(dom,type)   ((type) << (2*(dom)))
 
 #ifndef __ASSEMBLY__
+
+#ifdef CONFIG_MMU
 #define set_domain(x)                                  \
        do {                                            \
        __asm__ __volatile__(                           \
        "mcr    p15, 0, %0, c3, c0      @ set domain"   \
          : : "r" (x));                                 \
+       isb();                                          \
        } while (0)
 
 #define modify_domain(dom,type)                                        \
        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__ */