X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-arm%2Fdomain.h;h=3c12a7625304d24d19bcb9e469c5b5bbcca8faef;hb=087c50302fbd608118e7c0f27a95dc552ad2f53b;hp=f8ea2de4848ea7ae075836718342952a86cda1d0;hpb=86579dd06deecfa6ac88d5e84e4d63c397cd6f6d;p=linux-2.6 diff --git a/include/asm-arm/domain.h b/include/asm-arm/domain.h index f8ea2de484..3c12a76253 100644 --- a/include/asm-arm/domain.h +++ b/include/asm-arm/domain.h @@ -50,11 +50,14 @@ #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) \ @@ -66,5 +69,10 @@ 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__ */