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
+3 -3
View File
@@ -113,7 +113,7 @@ static bool irq_waitlock(int cpu)
/* Notify that we are waiting for a spinlock */
sched_note_spinlock(tcb, &g_cpu_irqlock);
sched_note_spinlock(tcb, &g_cpu_irqlock, NOTE_SPINLOCK_LOCK);
#endif
/* Duplicate the spin_lock() logic from spinlock.c, but adding the check
@@ -133,7 +133,7 @@ static bool irq_waitlock(int cpu)
#ifdef CONFIG_SCHED_INSTRUMENTATION_SPINLOCKS
/* Notify that we have aborted the wait for the spinlock */
sched_note_spinabort(tcb, &g_cpu_irqlock);
sched_note_spinlock(tcb, &g_cpu_irqlock, NOTE_SPINLOCK_ABORT);
#endif
return false;
@@ -145,7 +145,7 @@ static bool irq_waitlock(int cpu)
#ifdef CONFIG_SCHED_INSTRUMENTATION_SPINLOCKS
/* Notify that we have the spinlock */
sched_note_spinlocked(tcb, &g_cpu_irqlock);
sched_note_spinlock(tcb, &g_cpu_irqlock, NOTE_SPINLOCK_LOCKED);
#endif
return true;