Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753310AbaAZVI7 (ORCPT ); Sun, 26 Jan 2014 16:08:59 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35821 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753257AbaAZVI6 (ORCPT ); Sun, 26 Jan 2014 16:08:58 -0500 Date: Sun, 26 Jan 2014 22:08:50 +0100 From: Pavel Machek To: Len Brown Cc: rjw@sisk.pl, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Len Brown Subject: Re: [PATCH 1/1] suspend: make sync() on suspend-to-RAM optional Message-ID: <20140126210850.GA7246@Nokia-N900> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > From: Len Brown > > Linux suspend-to-RAM was unreliable when first developed, > and so sys_sync() was invoked inside the kernel at the > start of every suspend flow. > > Today, many devices are invoking suspend with > high reliability and high frequency, and they don't > want to be forced to pay for sync on every suspend. > > So here we make it optional. > De-select CONFIG_PM_SLEEP_SYNC to delete the call entirely. > or keep CONFIG_PM_SLEEP and you can now clear the > sys/power/sleep_sync attribte to disable the sync > from user-space. Dunno. Config option plus sysfs attribute is overdoing it a bit. Maybe we could do echo memfast > state to enter suspend without sync? Patch should be simpler that way, and we won't have to keep the state... Pavel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/