Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73328
b: refs/heads/master
c: 67b6051
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and Paul Mackerras committed Nov 8, 2007
1 parent 6606f5d commit 2024ef8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: a792e75d9b3dec3fc1dfef4a8c40674bbba44641
refs/heads/master: 67b60518b0ff5cd666c7650eb09f0ef41f838106
10 changes: 3 additions & 7 deletions trunk/drivers/macintosh/windfarm_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ static int wf_thread_func(void *data)
DBG("wf: thread started\n");

set_freezable();
while(!kthread_should_stop()) {
while (!kthread_should_stop()) {
try_to_freeze();

if (time_after_eq(jiffies, next)) {
wf_notify(WF_EVENT_TICK, NULL);
if (wf_overtemp) {
Expand All @@ -116,12 +118,6 @@ static int wf_thread_func(void *data)
delay = next - jiffies;
if (delay <= HZ)
schedule_timeout_interruptible(delay);

/* there should be no non-suspend signal, but oh well */
if (signal_pending(current) && !try_to_freeze()) {
printk(KERN_WARNING "windfarm: thread got sigl !\n");
break;
}
}

DBG("wf: thread stopped\n");
Expand Down

0 comments on commit 2024ef8

Please sign in to comment.