mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Barry Song <Barry.Song@csr.com>
To: <pavel@ucw.cz>
Cc: <rjw@sisk.pl>, <linux-kernel@vger.kernel.org>,
	<workgroup.linux@csr.com>, <linux-pm@lists.linux-foundation.org>,
	Barry Song <Baohua.Song@csr.com>, Borislav Petkov <bp@alien8.de>
Subject: [PATCH] PM: HIBERNATION: do not initialise statics and externals to 0 or NULL
Date: Tue, 11 Oct 2011 23:29:18 -0700	[thread overview]
Message-ID: <1318400958-21481-1-git-send-email-Barry.Song@csr.com> (raw)

From: Barry Song <Baohua.Song@csr.com>

Cc: Borislav Petkov <bp@alien8.de>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
 This patch depends on Barry Song's
 PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file;
 http://www.spinics.net/lists/linux-mmc/msg10282.html
 PM: HIBERNATION: add resume_delay kernel param;
 http://www.spinics.net/lists/linux-mmc/msg10478.html

 kernel/power/hibernate.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c
index f73a00e..19d443b 100644
--- a/kernel/power/hibernate.c
+++ b/kernel/power/hibernate.c
@@ -30,14 +30,14 @@
 #include "power.h"
 
 
-static int nocompress = 0;
-static int noresume = 0;
-static int resume_wait = 0;
-static int resume_delay = 0;
+static int nocompress;
+static int noresume;
+static int resume_wait;
+static int resume_delay;
 static char resume_file[256] = CONFIG_PM_STD_PARTITION;
 dev_t swsusp_resume_device;
 sector_t swsusp_resume_block;
-int in_suspend __nosavedata = 0;
+int in_suspend __nosavedata;
 
 enum {
 	HIBERNATION_INVALID,
-- 
1.7.1



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog

             reply	other threads:[~2011-10-12  6:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-12  6:29 Barry Song [this message]
2011-10-12 21:35 ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1318400958-21481-1-git-send-email-Barry.Song@csr.com \
    --to=barry.song@csr.com \
    --cc=Baohua.Song@csr.com \
    --cc=bp@alien8.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=pavel@ucw.cz \
    --cc=rjw@sisk.pl \
    --cc=workgroup.linux@csr.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®