video: add sched_note_mark at fb_remove_paninfo and fb_notify_vsync
fb_notify_vsync is called when TE irq comming, and fb_remove_paninfo is called after paninfo comsumed
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
diff --git a/drivers/video/fb.c b/drivers/video/fb.c
index 2ee6b6e..30c25e5 100644
--- a/drivers/video/fb.c
+++ b/drivers/video/fb.c
@@ -45,6 +45,8 @@
#include <nuttx/clock.h>
#include <nuttx/wdog.h>
#include <nuttx/circbuf.h>
+#include <nuttx/sched_note.h>
+
#ifdef CONFIG_VIDEO_FB_SPLASHSCREEN
# include <nuttx/signal.h>
#endif
@@ -1685,6 +1687,8 @@
FAR struct fb_priv_s *priv;
irqstate_t flags;
+ sched_note_mark(NOTE_TAG_GRAPHICS, __func__);
+
fb = vtable->priv;
if (fb != NULL)
{
@@ -1773,6 +1777,8 @@
ssize_t ret;
bool full;
+ sched_note_mark(NOTE_TAG_GRAPHICS, __func__);
+
fb = vtable->priv;
if (fb == NULL)
{