mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 18:37:46 +08:00
merge sched_note_spinxx into sched_note_spincommon
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user