vdec: Remove the unnecessory warning message in vdec [1/1]
authorapollo.ling <apollo.ling@amlogic.com>
Sat, 9 May 2020 12:40:46 +0000 (20:40 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Sat, 9 May 2020 13:29:41 +0000 (06:29 -0700)
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 <apollo.ling@amlogic.com>
drivers/frame_provider/decoder/utils/vdec.c
drivers/frame_provider/decoder/utils/vdec.h

index 00b154afc761e96c116862818f91ed9f89890042..e2993a618a13dec38cb320abc40d7f12ff5b7fb4 100644 (file)
@@ -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);
index bc4ef216bee0c7cbec70b75675f1b03fc490ac13..12fa840f119622625047fcdb4f901e2a57b29d14 100644 (file)
@@ -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;
 };