Skip to content

Commit

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

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

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

/* there should be no signal, but oh well */
if (signal_pending(current)) {
/* 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;
}
Expand Down

0 comments on commit 16023b3

Please sign in to comment.