patches: fixed second patch
[ana-net.git] / microblaze / patches / microblaze_atomic64.patch
blob70bbc9af933efdc5ff3b6810ef8409e2302bc5f8
1 Signed-off-by: Ariane Keller <ariane.keller@tik.ee.ethz.ch>
2 Signed-off-by: Daniel Borkmann <daniel.borkmann@tik.ee.ethz.ch>
3 ---
4 arch/microblaze/Kconfig | 1 +
5 arch/microblaze/include/asm/atomic.h | 1 +
6 2 files changed, 2 insertions(+), 0 deletions(-)
8 diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
9 index 74f23a4..c8d6efb 100644
10 --- a/arch/microblaze/Kconfig
11 +++ b/arch/microblaze/Kconfig
12 @@ -19,6 +19,7 @@ config MICROBLAZE
13 select GENERIC_IRQ_SHOW
14 select GENERIC_PCI_IOMAP
15 select GENERIC_CPU_DEVICES
16 + select GENERIC_ATOMIC64
18 config SWAP
19 def_bool n
20 diff --git a/arch/microblaze/include/asm/atomic.h b/arch/microblaze/include/asm/atomic.h
21 index 6d2e1d4..615f539 100644
22 --- a/arch/microblaze/include/asm/atomic.h
23 +++ b/arch/microblaze/include/asm/atomic.h
24 @@ -2,6 +2,7 @@
25 #define _ASM_MICROBLAZE_ATOMIC_H
27 #include <asm-generic/atomic.h>
28 +#include <asm-generic/atomic64.h>
31 * Atomically test *v and decrement if it is greater than 0.