Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101691
b: refs/heads/master
c: 1baaeea
h: refs/heads/master
i:
  101689: 864711c
  101687: f53758a
v: v3
  • Loading branch information
Daniel Walker authored and Paul Mackerras committed Jun 30, 2008
1 parent 0668fbd commit 3681fd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: b1e2270ffefb636afd71bbb8bf19aedff0e5ac3d
refs/heads/master: 1baaeea00594776978d875a0f618591056a3705a
16 changes: 8 additions & 8 deletions trunk/drivers/macintosh/therm_windtunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static struct {
volatile int running;
struct task_struct *poll_task;

struct semaphore lock;
struct mutex lock;
struct of_device *of_dev;

struct i2c_client *thermostat;
Expand Down Expand Up @@ -286,23 +286,23 @@ restore_regs( void )

static int control_loop(void *dummy)
{
down(&x.lock);
mutex_lock(&x.lock);
setup_hardware();
up(&x.lock);
mutex_unlock(&x.lock);

for (;;) {
msleep_interruptible(8000);
if (kthread_should_stop())
break;

down(&x.lock);
mutex_lock(&x.lock);
poll_temp();
up(&x.lock);
mutex_unlock(&x.lock);
}

down(&x.lock);
mutex_lock(&x.lock);
restore_regs();
up(&x.lock);
mutex_unlock(&x.lock);

return 0;
}
Expand Down Expand Up @@ -489,7 +489,7 @@ g4fan_init( void )
const struct apple_thermal_info *info;
struct device_node *np;

init_MUTEX( &x.lock );
mutex_init(&x.lock);

if( !(np=of_find_node_by_name(NULL, "power-mgt")) )
return -ENODEV;
Expand Down

0 comments on commit 3681fd8

Please sign in to comment.