Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8153
b: refs/heads/master
c: 4da006c
h: refs/heads/master
i:
  8151: c6eb50a
v: v3
  • Loading branch information
Marcelo Feitoza Parisi authored and Linus Torvalds committed Sep 9, 2005
1 parent 9cb19f0 commit 7719914
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ac2854cbc637de7e958cfa8d153ccf9e6668dda
refs/heads/master: 4da006c63fb4758ee2d688aa65a461337b3ed065
6 changes: 4 additions & 2 deletions trunk/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/delay.h>
#include <linux/time.h>
#include <linux/errno.h>
#include <linux/jiffies.h>
#include <asm/semaphore.h>

#include "dvb_frontend.h"
Expand Down Expand Up @@ -570,7 +571,8 @@ static void ttusb_handle_sec_data(struct ttusb_channel *channel,
const u8 * data, int len);
#endif

static int numpkt = 0, lastj, numts, numstuff, numsec, numinvalid;
static int numpkt = 0, numts, numstuff, numsec, numinvalid;
static unsigned long lastj;

static void ttusb_process_muxpack(struct ttusb *ttusb, const u8 * muxpack,
int len)
Expand Down Expand Up @@ -779,7 +781,7 @@ static void ttusb_iso_irq(struct urb *urb, struct pt_regs *ptregs)
u8 *data;
int len;
numpkt++;
if ((jiffies - lastj) >= HZ) {
if (time_after_eq(jiffies, lastj + HZ)) {
#if DEBUG > 2
printk
("frames/s: %d (ts: %d, stuff %d, sec: %d, invalid: %d, all: %d)\n",
Expand Down

0 comments on commit 7719914

Please sign in to comment.