]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: usbvision: remove time_in_irq
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 20 Jun 2018 11:01:03 +0000 (07:01 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 12 Sep 2018 12:02:25 +0000 (08:02 -0400)
Time "in interrupt" accounting with the help of `jiffies' is a pointless
exercise. This variable isn't even used.
Remove time_in_irq.

Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/usbvision/usbvision-core.c
drivers/media/usb/usbvision/usbvision.h

index 7138c2b606cce92e1e2c450ed09e42d672025c41..31e0e98d6dafe429d87c92e1d669174f96b26e21 100644 (file)
@@ -1272,7 +1272,6 @@ static void usbvision_isoc_irq(struct urb *urb)
        int len;
        struct usb_usbvision *usbvision = urb->context;
        int i;
-       unsigned long start_time = jiffies;
        struct usbvision_frame **f;
 
        /* We don't want to do anything if we are about to be removed! */
@@ -1324,8 +1323,6 @@ static void usbvision_isoc_irq(struct urb *urb)
                scratch_reset(usbvision);
        }
 
-       usbvision->time_in_irq += jiffies - start_time;
-
        for (i = 0; i < USBVISION_URB_FRAMES; i++) {
                urb->iso_frame_desc[i].status = 0;
                urb->iso_frame_desc[i].actual_length = 0;
index 6ecdcd58248f195cd4a2c7e43b62f93d8857170a..017e7baf57473b3ae5514314d36a254533669e58 100644 (file)
@@ -447,7 +447,6 @@ struct usb_usbvision {
        unsigned long isoc_skip_count;                  /* How many empty ISO packets received */
        unsigned long isoc_err_count;                   /* How many bad ISO packets received */
        unsigned long isoc_packet_count;                /* How many packets we totally got */
-       unsigned long time_in_irq;                      /* How long do we need for interrupt */
        int isoc_measure_bandwidth_count;
        int frame_num;                                  /* How many video frames we send to user */
        int max_strip_len;                              /* How big is the biggest strip */