From 9df731a176aab8e03b984b681b1bea01ccff6644 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 06 Nov 2023 07:23:06 +0000
Subject: [PATCH] rk3568 rt uboot init

---
 u-boot/include/asm-generic/atomic-long.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/u-boot/include/asm-generic/atomic-long.h b/u-boot/include/asm-generic/atomic-long.h
index d0469ef..32f288b 100644
--- a/u-boot/include/asm-generic/atomic-long.h
+++ b/u-boot/include/asm-generic/atomic-long.h
@@ -66,6 +66,7 @@
 	atomic64_sub(i, v);
 }
 
+#ifndef __UBOOT__
 static inline int atomic_long_sub_and_test(long i, atomic_long_t *l)
 {
 	atomic64_t *v = (atomic64_t *)l;
@@ -135,6 +136,7 @@
 	(atomic64_cmpxchg((atomic64_t *)(l), (old), (new)))
 #define atomic_long_xchg(v, new) \
 	(atomic64_xchg((atomic64_t *)(v), (new)))
+#endif  /*  __UBOOT__ */
 
 #else  /*  BITS_PER_LONG == 64  */
 

--
Gitblit v1.6.2