Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81070
b: refs/heads/master
c: 39d183d
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mackerras committed Dec 19, 2007
1 parent 6135f17 commit edf0c53
Show file tree
Hide file tree
Showing 2 changed files with 5 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: c61dace9a10a4bc54c764f9f490994a9d7852859
refs/heads/master: 39d183d87791cdfd9d430df299396c0fc688ea7a
9 changes: 4 additions & 5 deletions trunk/drivers/macintosh/therm_pm72.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
#include <linux/reboot.h>
#include <linux/kmod.h>
#include <linux/i2c.h>
#include <linux/kthread.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/io.h>
Expand Down Expand Up @@ -161,7 +162,7 @@ static struct slots_pid_state slots_state;
static int state;
static int cpu_count;
static int cpu_pid_type;
static pid_t ctrl_task;
static struct task_struct *ctrl_task;
static struct completion ctrl_complete;
static int critical_state;
static int rackmac;
Expand Down Expand Up @@ -1779,8 +1780,6 @@ static int call_critical_overtemp(void)
*/
static int main_control_loop(void *x)
{
daemonize("kfand");

DBG("main_control_loop started\n");

down(&driver_lock);
Expand Down Expand Up @@ -1956,15 +1955,15 @@ static void start_control_loops(void)
{
init_completion(&ctrl_complete);

ctrl_task = kernel_thread(main_control_loop, NULL, SIGCHLD | CLONE_KERNEL);
ctrl_task = kthread_run(main_control_loop, NULL, "kfand");
}

/*
* Stop the control loops when tearing down
*/
static void stop_control_loops(void)
{
if (ctrl_task != 0)
if (ctrl_task)
wait_for_completion(&ctrl_complete);
}

Expand Down

0 comments on commit edf0c53

Please sign in to comment.