diff options
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/therm_adt746x.c | 1 | ||||
-rw-r--r-- | drivers/macintosh/windfarm_core.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/macintosh/therm_adt746x.c b/drivers/macintosh/therm_adt746x.c index bd55e6ab99fc..f25685b9b7cf 100644 --- a/drivers/macintosh/therm_adt746x.c +++ b/drivers/macintosh/therm_adt746x.c | |||
@@ -335,6 +335,7 @@ static int monitor_task(void *arg) | |||
335 | { | 335 | { |
336 | struct thermostat* th = arg; | 336 | struct thermostat* th = arg; |
337 | 337 | ||
338 | set_freezable(); | ||
338 | while(!kthread_should_stop()) { | 339 | while(!kthread_should_stop()) { |
339 | try_to_freeze(); | 340 | try_to_freeze(); |
340 | msleep_interruptible(2000); | 341 | msleep_interruptible(2000); |
diff --git a/drivers/macintosh/windfarm_core.c b/drivers/macintosh/windfarm_core.c index 4fcb245ba184..e18d265d5d33 100644 --- a/drivers/macintosh/windfarm_core.c +++ b/drivers/macintosh/windfarm_core.c | |||
@@ -92,6 +92,7 @@ static int wf_thread_func(void *data) | |||
92 | 92 | ||
93 | DBG("wf: thread started\n"); | 93 | DBG("wf: thread started\n"); |
94 | 94 | ||
95 | set_freezable(); | ||
95 | while(!kthread_should_stop()) { | 96 | while(!kthread_should_stop()) { |
96 | if (time_after_eq(jiffies, next)) { | 97 | if (time_after_eq(jiffies, next)) { |
97 | wf_notify(WF_EVENT_TICK, NULL); | 98 | wf_notify(WF_EVENT_TICK, NULL); |