Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311719
b: refs/heads/master
c: 82401bf
h: refs/heads/master
i:
  311717: 2b09a69
  311715: 9d4859e
  311711: 4272c0a
v: v3
  • Loading branch information
Russell King committed Jul 5, 2012
1 parent 714bd81 commit 81045a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32e1eb59f7042c03cb8dbb598e7c97fddbb62ac2
refs/heads/master: 82401bf105495c593544375b4748f48fce70d9c4
18 changes: 9 additions & 9 deletions trunk/arch/arm/include/asm/domain.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
#ifndef __ASSEMBLY__

#ifdef CONFIG_CPU_USE_DOMAINS
#define set_domain(x) \
do { \
__asm__ __volatile__( \
"mcr p15, 0, %0, c3, c0 @ set domain" \
: : "r" (x)); \
isb(); \
} while (0)
static inline void set_domain(unsigned val)
{
asm volatile(
"mcr p15, 0, %0, c3, c0 @ set domain"
: : "r" (val));
isb();
}

#define modify_domain(dom,type) \
do { \
Expand All @@ -78,8 +78,8 @@
} while (0)

#else
#define set_domain(x) do { } while (0)
#define modify_domain(dom,type) do { } while (0)
static inline void set_domain(unsigned val) { }
static inline void modify_domain(unsigned dom, unsigned type) { }
#endif

/*
Expand Down

0 comments on commit 81045a6

Please sign in to comment.