diff options
author | Rich Felker <dalias@libc.org> | 2016-07-28 19:21:10 +0000 |
---|---|---|
committer | Rich Felker <dalias@libc.org> | 2016-08-05 03:29:34 +0000 |
commit | 2b47d54ed41c33baf5825185168b493317c5572f (patch) | |
tree | a42a2098fa73f41d6d5b214e1eeca5712d419551 /arch/sh/include/asm/bitops.h | |
parent | 834da197058bebcb343320dafb8b62d416d4038c (diff) | |
download | linux-2b47d54ed41c33baf5825185168b493317c5572f.tar.bz2 |
sh: add J2 atomics using the cas.l instruction
Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh/include/asm/bitops.h')
-rw-r--r-- | arch/sh/include/asm/bitops.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/include/asm/bitops.h b/arch/sh/include/asm/bitops.h index fc8e652cf173..a8699d60a8c4 100644 --- a/arch/sh/include/asm/bitops.h +++ b/arch/sh/include/asm/bitops.h @@ -18,6 +18,8 @@ #include <asm/bitops-op32.h> #elif defined(CONFIG_CPU_SH4A) #include <asm/bitops-llsc.h> +#elif defined(CONFIG_CPU_J2) && defined(CONFIG_SMP) +#include <asm/bitops-cas.h> #else #include <asm-generic/bitops/atomic.h> #include <asm-generic/bitops/non-atomic.h> |