mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-06 02:06:40 +07:00
60063497a9
This allows us to move duplicated code in <asm/atomic.h> (atomic_inc_not_zero() for now) to <linux/atomic.h> Signed-off-by: Arun Sharma <asharma@fb.com> Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: David Miller <davem@davemloft.net> Cc: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
60 lines
2.5 KiB
C
60 lines
2.5 KiB
C
#include <linux/compiler.h>
|
|
#include <linux/module.h>
|
|
#include <linux/types.h>
|
|
|
|
#include <asm/processor.h>
|
|
#include <asm/cmpxchg.h>
|
|
#include <linux/atomic.h>
|
|
|
|
long long atomic64_read_cx8(long long, const atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_read_cx8);
|
|
long long atomic64_set_cx8(long long, const atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_set_cx8);
|
|
long long atomic64_xchg_cx8(long long, unsigned high);
|
|
EXPORT_SYMBOL(atomic64_xchg_cx8);
|
|
long long atomic64_add_return_cx8(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_add_return_cx8);
|
|
long long atomic64_sub_return_cx8(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_sub_return_cx8);
|
|
long long atomic64_inc_return_cx8(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_inc_return_cx8);
|
|
long long atomic64_dec_return_cx8(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_dec_return_cx8);
|
|
long long atomic64_dec_if_positive_cx8(atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_dec_if_positive_cx8);
|
|
int atomic64_inc_not_zero_cx8(atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_inc_not_zero_cx8);
|
|
int atomic64_add_unless_cx8(atomic64_t *v, long long a, long long u);
|
|
EXPORT_SYMBOL(atomic64_add_unless_cx8);
|
|
|
|
#ifndef CONFIG_X86_CMPXCHG64
|
|
long long atomic64_read_386(long long, const atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_read_386);
|
|
long long atomic64_set_386(long long, const atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_set_386);
|
|
long long atomic64_xchg_386(long long, unsigned high);
|
|
EXPORT_SYMBOL(atomic64_xchg_386);
|
|
long long atomic64_add_return_386(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_add_return_386);
|
|
long long atomic64_sub_return_386(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_sub_return_386);
|
|
long long atomic64_inc_return_386(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_inc_return_386);
|
|
long long atomic64_dec_return_386(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_dec_return_386);
|
|
long long atomic64_add_386(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_add_386);
|
|
long long atomic64_sub_386(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_sub_386);
|
|
long long atomic64_inc_386(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_inc_386);
|
|
long long atomic64_dec_386(long long a, atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_dec_386);
|
|
long long atomic64_dec_if_positive_386(atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_dec_if_positive_386);
|
|
int atomic64_inc_not_zero_386(atomic64_t *v);
|
|
EXPORT_SYMBOL(atomic64_inc_not_zero_386);
|
|
int atomic64_add_unless_386(atomic64_t *v, long long a, long long u);
|
|
EXPORT_SYMBOL(atomic64_add_unless_386);
|
|
#endif
|