merge sched_note_spinxx into sched_note_spincommon

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai
2022-12-16 12:27:09 +08:00
committed by Xiang Xiao
parent aeed8f5d26
commit 552cf4b549
6 changed files with 91 additions and 154 deletions
+5 -15
View File
@@ -33,6 +33,7 @@
#include <stdarg.h>
#include <nuttx/sched.h>
#include <nuttx/spinlock.h>
/* For system call numbers definition */
@@ -512,18 +513,10 @@ void sched_note_csection(FAR struct tcb_s *tcb, bool enter);
#ifdef CONFIG_SCHED_INSTRUMENTATION_SPINLOCKS
void sched_note_spinlock(FAR struct tcb_s *tcb,
FAR volatile void *spinlock);
void sched_note_spinlocked(FAR struct tcb_s *tcb,
FAR volatile void *spinlock);
void sched_note_spinunlock(FAR struct tcb_s *tcb,
FAR volatile void *spinlock);
void sched_note_spinabort(FAR struct tcb_s *tcb,
FAR volatile void *spinlock);
FAR volatile spinlock_t *spinlock,
int type);
#else
# define sched_note_spinlock(t,s)
# define sched_note_spinlocked(t,s)
# define sched_note_spinunlock(t,s)
# define sched_note_spinabort(t,s)
# define sched_note_spinlock(tcb, spinlock, type)
#endif
#ifdef CONFIG_SCHED_INSTRUMENTATION_SYSCALL
@@ -695,10 +688,7 @@ void sched_note_filter_irq(FAR struct note_filter_irq_s *oldf,
# define sched_note_cpu_resumed(t)
# define sched_note_premption(t,l)
# define sched_note_csection(t,e)
# define sched_note_spinlock(t,s)
# define sched_note_spinlocked(t,s)
# define sched_note_spinunlock(t,s)
# define sched_note_spinabort(t,s)
# define sched_note_spinlock(t,s,i)
# define sched_note_syscall_enter(n,a,...)
# define sched_note_syscall_leave(n,r)
# define sched_note_irqhandler(i,h,e)