Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366614
b: refs/heads/master
c: a9b9fbd
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2013
1 parent 0489bdc commit 926e4c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4cce1f4eb29765def538e7c975dac73346a0d306
refs/heads/master: a9b9fbdf0a6a65359cd97254a282526822de5257
5 changes: 5 additions & 0 deletions trunk/drivers/media/common/siano/smsdvb-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,11 @@ static int smsdvb_send_statistics_request(struct smsdvb_client_t *client)
int rc;
struct SmsMsgHdr_ST Msg;

/* Don't request stats too fast */
if (client->get_stats_jiffies &&
(!time_after(jiffies, client->get_stats_jiffies)))
return 0;
client->get_stats_jiffies = jiffies + msecs_to_jiffies(100);

Msg.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
Msg.msgDstId = HIF_TASK;
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/common/siano/smsdvb.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ struct smsdvb_client_t {
int event_fe_state;
int event_unc_state;

unsigned long get_stats_jiffies;

/* Stats debugfs data */
struct dentry *debugfs;

Expand Down

0 comments on commit 926e4c3

Please sign in to comment.