mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
seqlock: change UP_DMB to UP_RMB to improve performance
read_seq Loop 20,000,000 times before 233333376 after 183333375 Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -105,7 +105,7 @@ unsigned int read_seqbegin(FAR const seqcount_t *s)
|
||||
while (predict_false((seq = s->sequence) & 1));
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
UP_DMB();
|
||||
SMP_RMB();
|
||||
#endif
|
||||
|
||||
return seq;
|
||||
|
||||
Reference in New Issue
Block a user