Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4956
b: refs/heads/master
c: cb39d26
h: refs/heads/master
v: v3
  • Loading branch information
Nishanth Aravamudan authored and David S. Miller committed Jul 25, 2005
1 parent 6484156 commit 374a4de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 70c83375bb47cadd60fdb923ad913d4f4be75aba
refs/heads/master: cb39d263e751f9cca8055bcacfe5ec863dfe2705
7 changes: 2 additions & 5 deletions trunk/drivers/sbus/char/envctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ static int kenvctrld(void *__unused)
return -ENODEV;
}

poll_interval = 5 * HZ; /* TODO env_mon_interval */
poll_interval = 5000; /* TODO env_mon_interval */

daemonize("kenvctrld");
allow_signal(SIGKILL);
Expand All @@ -1016,10 +1016,7 @@ static int kenvctrld(void *__unused)

printk(KERN_INFO "envctrl: %s starting...\n", current->comm);
for (;;) {
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(poll_interval);

if(signal_pending(current))
if(msleep_interruptible(poll_interval))
break;

for (whichcpu = 0; whichcpu < ENVCTRL_MAX_CPU; ++whichcpu) {
Expand Down

0 comments on commit 374a4de

Please sign in to comment.