Enable suspend on kernel 28/10628/1
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 30 Sep 2013 07:25:55 +0000 (16:25 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Tue, 8 Oct 2013 05:51:20 +0000 (14:51 +0900)
Change-Id: Ice3e8c1ce10ea660f612d1c7ab58d87b30ba958f
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
kernel/power/main.c

index 992f3eb439278744379cf52f62bb5e6fab5f8d35..1c12581f1c62ce56bfe61bae08d58745309b0b9d 100644 (file)
@@ -272,8 +272,6 @@ static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr,
 static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr,
                           const char *buf, size_t n)
 {
-#if 0 // do not allow suspend in emulator
-
 #ifdef CONFIG_SUSPEND
        suspend_state_t state = PM_SUSPEND_STANDBY;
        const char * const *s;
@@ -302,10 +300,6 @@ static ssize_t state_store(struct kobject *kobj, struct kobj_attribute *attr,
 
  Exit:
        return error ? error : n;
-#else
-
-       return n;
-#endif // do not allow suspend in emulator
 }
 
 power_attr(state);