[Type] Bugfix
[Module] Power
[Priority] Major
[CQ#]
[Redmine#]
[Problem] some side-effects occurs in socket communicating with the guest during suspend.
[Cause]
[Solution]
Change-Id: I27135ecb26f83bf1d474a5090d7e8f5784a50bc5
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;
Exit:
return error ? error : n;
+#else
+
+ return n;
+
+#endif // do not allow suspend in emulator
}
power_attr(state);