From d1bf865d79005a7085fba8f963e155b6c75425cf Mon Sep 17 00:00:00 2001 From: "apollo.ling" Date: Sat, 9 May 2020 20:40:46 +0800 Subject: [PATCH] vdec: Remove the unnecessory warning message in vdec [1/1] PD#SWPL-25700 Problem: Sometimes there are some unnecessory warning messages in vdec Solution: Remove the unnecessory warning message Verify: u212 Change-Id: Icb6dbf6291ee169be06aab39bbc2c53fde92c033 Signed-off-by: apollo.ling --- drivers/frame_provider/decoder/utils/vdec.c | 7 ------- drivers/frame_provider/decoder/utils/vdec.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/drivers/frame_provider/decoder/utils/vdec.c b/drivers/frame_provider/decoder/utils/vdec.c index 00b154a..e2993a6 100644 --- a/drivers/frame_provider/decoder/utils/vdec.c +++ b/drivers/frame_provider/decoder/utils/vdec.c @@ -2794,7 +2794,6 @@ static irqreturn_t vdec_isr(int irq, void *dev_id) if (atomic_read(&vdec->inrelease) > 0) return ret; atomic_set(&vdec->inirq_flag, 1); - vdec->isr_ns = local_clock(); } if (c->dev_isr) { ret = c->dev_isr(irq, c->dev_id); @@ -2849,15 +2848,9 @@ static irqreturn_t vdec_thread_isr(int irq, void *dev_id) } if (vdec) { - u32 isr2tfn = 0; if (atomic_read(&vdec->inrelease) > 0) return ret; atomic_set(&vdec->inirq_thread_flag, 1); - vdec->tfn_ns = local_clock(); - isr2tfn = vdec->tfn_ns - vdec->isr_ns; - if (isr2tfn > 10000000) - pr_err("!!!!!!! %s vdec_isr to %s took %u ns !!!\n", - vdec->vf_provider_name, __func__, isr2tfn); } if (c->dev_threaded_isr) { ret = c->dev_threaded_isr(irq, c->dev_id); diff --git a/drivers/frame_provider/decoder/utils/vdec.h b/drivers/frame_provider/decoder/utils/vdec.h index bc4ef21..12fa840 100644 --- a/drivers/frame_provider/decoder/utils/vdec.h +++ b/drivers/frame_provider/decoder/utils/vdec.h @@ -269,8 +269,6 @@ struct vdec_s { atomic_t inirq_flag; atomic_t inrelease; int parallel_dec; - volatile u64 isr_ns; - volatile u64 tfn_ns; struct vdec_frames_s *mvfrm; }; -- 2.20.1