X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-arm%2Fdomain.h;h=3c12a7625304d24d19bcb9e469c5b5bbcca8faef;hb=13c48c490208d9e70d8d66d56f96c5054db69af7;hp=f8ea2de4848ea7ae075836718342952a86cda1d0;hpb=d42510a0f58c2583c37c8e9b7548e3a68545863a;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__ */