diff options
| author | Takashi Iwai <tiwai@suse.de> | 2012-01-31 15:13:14 +0100 | 
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2012-01-31 15:13:14 +0100 | 
| commit | ea51e5040e24eefe44d70bc654a237ca1f0225b0 (patch) | |
| tree | df2e5922dcdfafae62a10d8cd97f98121064fc23 /kernel/power/main.c | |
| parent | 3422a47041b8cb8f14ac1e3926bcf711121df6dc (diff) | |
| parent | 8dbd52daee38adaae4d5a674bcca837e694a4f4c (diff) | |
Merge branch 'fix/asoc' into for-linus
Diffstat (limited to 'kernel/power/main.c')
| -rw-r--r-- | kernel/power/main.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/kernel/power/main.c b/kernel/power/main.c index 36e0f0903c32..9824b41e5a18 100644 --- a/kernel/power/main.c +++ b/kernel/power/main.c @@ -3,7 +3,7 @@   *   * Copyright (c) 2003 Patrick Mochel   * Copyright (c) 2003 Open Source Development Lab - *  + *   * This file is released under the GPLv2   *   */ @@ -116,7 +116,7 @@ static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr,  	p = memchr(buf, '\n', n);  	len = p ? p - buf : n; -	mutex_lock(&pm_mutex); +	lock_system_sleep();  	level = TEST_FIRST;  	for (s = &pm_tests[level]; level <= TEST_MAX; s++, level++) @@ -126,7 +126,7 @@ static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr,  			break;  		} -	mutex_unlock(&pm_mutex); +	unlock_system_sleep();  	return error ? error : n;  } @@ -240,7 +240,7 @@ struct kobject *power_kobj;   *	'standby' (Power-On Suspend), 'mem' (Suspend-to-RAM), and   *	'disk' (Suspend-to-Disk).   * - *	store() accepts one of those strings, translates it into the  + *	store() accepts one of those strings, translates it into the   *	proper enumerated value, and initiates a suspend transition.   */  static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr, @@ -282,7 +282,7 @@ static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr,  	/* First, check if we are requested to hibernate */  	if (len == 4 && !strncmp(buf, "disk", len)) {  		error = hibernate(); -  goto Exit; +		goto Exit;  	}  #ifdef CONFIG_SUSPEND | 
