aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/windfarm_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/macintosh/windfarm_core.c b/drivers/macintosh/windfarm_core.c
index e947af982f93..94c117ef20c1 100644
--- a/drivers/macintosh/windfarm_core.c
+++ b/drivers/macintosh/windfarm_core.c
@@ -94,8 +94,6 @@ static int wf_thread_func(void *data)
94 DBG("wf: thread started\n"); 94 DBG("wf: thread started\n");
95 95
96 while(!kthread_should_stop()) { 96 while(!kthread_should_stop()) {
97 try_to_freeze();
98
99 if (time_after_eq(jiffies, next)) { 97 if (time_after_eq(jiffies, next)) {
100 wf_notify(WF_EVENT_TICK, NULL); 98 wf_notify(WF_EVENT_TICK, NULL);
101 if (wf_overtemp) { 99 if (wf_overtemp) {
@@ -118,8 +116,8 @@ static int wf_thread_func(void *data)
118 if (delay <= HZ) 116 if (delay <= HZ)
119 schedule_timeout_interruptible(delay); 117 schedule_timeout_interruptible(delay);
120 118
121 /* there should be no signal, but oh well */ 119 /* there should be no non-suspend signal, but oh well */
122 if (signal_pending(current)) { 120 if (signal_pending(current) && !try_to_freeze()) {
123 printk(KERN_WARNING "windfarm: thread got sigl !\n"); 121 printk(KERN_WARNING "windfarm: thread got sigl !\n");
124 break; 122 break;
125 } 123 }