Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129878
b: refs/heads/master
c: 7646ea8
h: refs/heads/master
v: v3
  • Loading branch information
Henrique de Moraes Holschuh authored and Len Brown committed Jan 15, 2009
1 parent d65c5fd commit bcae0ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 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: 0045c0aa7d5e787f78938e6a10927b8a516f0b83
refs/heads/master: 7646ea88af80a92f2775e17d4283830d7f09ea2d
26 changes: 13 additions & 13 deletions trunk/drivers/platform/x86/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,7 @@ static ssize_t hotkey_mask_show(struct device *dev,
{
int res;

if (mutex_lock_interruptible(&hotkey_mutex))
if (mutex_lock_killable(&hotkey_mutex))
return -ERESTARTSYS;
res = hotkey_mask_get();
mutex_unlock(&hotkey_mutex);
Expand All @@ -1897,7 +1897,7 @@ static ssize_t hotkey_mask_store(struct device *dev,
if (parse_strtoul(buf, 0xffffffffUL, &t))
return -EINVAL;

if (mutex_lock_interruptible(&hotkey_mutex))
if (mutex_lock_killable(&hotkey_mutex))
return -ERESTARTSYS;

res = hotkey_mask_set(t);
Expand Down Expand Up @@ -1983,7 +1983,7 @@ static ssize_t hotkey_source_mask_store(struct device *dev,
((t & ~TPACPI_HKEY_NVRAM_KNOWN_MASK) != 0))
return -EINVAL;

if (mutex_lock_interruptible(&hotkey_mutex))
if (mutex_lock_killable(&hotkey_mutex))
return -ERESTARTSYS;

HOTKEY_CONFIG_CRITICAL_START
Expand Down Expand Up @@ -2018,7 +2018,7 @@ static ssize_t hotkey_poll_freq_store(struct device *dev,
if (parse_strtoul(buf, 25, &t))
return -EINVAL;

if (mutex_lock_interruptible(&hotkey_mutex))
if (mutex_lock_killable(&hotkey_mutex))
return -ERESTARTSYS;

hotkey_poll_freq = t;
Expand Down Expand Up @@ -2754,7 +2754,7 @@ static int hotkey_read(char *p)
return len;
}

if (mutex_lock_interruptible(&hotkey_mutex))
if (mutex_lock_killable(&hotkey_mutex))
return -ERESTARTSYS;
res = hotkey_status_get(&status);
if (!res)
Expand Down Expand Up @@ -2785,7 +2785,7 @@ static int hotkey_write(char *buf)
if (!tp_features.hotkey)
return -ENODEV;

if (mutex_lock_interruptible(&hotkey_mutex))
if (mutex_lock_killable(&hotkey_mutex))
return -ERESTARTSYS;

status = -1;
Expand Down Expand Up @@ -5311,7 +5311,7 @@ static int brightness_set(int value)
value < 0)
return -EINVAL;

res = mutex_lock_interruptible(&brightness_mutex);
res = mutex_lock_killable(&brightness_mutex);
if (res < 0)
return res;

Expand Down Expand Up @@ -5849,7 +5849,7 @@ static int fan_get_status_safe(u8 *status)
int rc;
u8 s;

if (mutex_lock_interruptible(&fan_mutex))
if (mutex_lock_killable(&fan_mutex))
return -ERESTARTSYS;
rc = fan_get_status(&s);
if (!rc)
Expand Down Expand Up @@ -5932,7 +5932,7 @@ static int fan_set_level_safe(int level)
if (!fan_control_allowed)
return -EPERM;

if (mutex_lock_interruptible(&fan_mutex))
if (mutex_lock_killable(&fan_mutex))
return -ERESTARTSYS;

if (level == TPACPI_FAN_LAST_LEVEL)
Expand All @@ -5954,7 +5954,7 @@ static int fan_set_enable(void)
if (!fan_control_allowed)
return -EPERM;

if (mutex_lock_interruptible(&fan_mutex))
if (mutex_lock_killable(&fan_mutex))
return -ERESTARTSYS;

switch (fan_control_access_mode) {
Expand Down Expand Up @@ -6009,7 +6009,7 @@ static int fan_set_disable(void)
if (!fan_control_allowed)
return -EPERM;

if (mutex_lock_interruptible(&fan_mutex))
if (mutex_lock_killable(&fan_mutex))
return -ERESTARTSYS;

rc = 0;
Expand Down Expand Up @@ -6047,7 +6047,7 @@ static int fan_set_speed(int speed)
if (!fan_control_allowed)
return -EPERM;

if (mutex_lock_interruptible(&fan_mutex))
if (mutex_lock_killable(&fan_mutex))
return -ERESTARTSYS;

rc = 0;
Expand Down Expand Up @@ -6249,7 +6249,7 @@ static ssize_t fan_pwm1_store(struct device *dev,
/* scale down from 0-255 to 0-7 */
newlevel = (s >> 5) & 0x07;

if (mutex_lock_interruptible(&fan_mutex))
if (mutex_lock_killable(&fan_mutex))
return -ERESTARTSYS;

rc = fan_get_status(&status);
Expand Down

0 comments on commit bcae0ed

Please sign in to comment.