From: Vladimir Davydov <vdavydov@parallels.com>
To: Eric Biederman <ebiederm@xmission.com>
Cc: Vladimir Davydov <vdavydov@parallels.com>,
<kexec@lists.infradead.org>, <linux-kernel@vger.kernel.org>
Subject: [PATCH] kexec: consolidate crash late initialization
Date: Wed, 30 May 2012 14:05:09 +0400 [thread overview]
Message-ID: <1338372309-24983-1-git-send-email-vdavydov@parallels.com> (raw)
Use one module_init() instead of two.
---
kernel/kexec.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/kernel/kexec.c b/kernel/kexec.c
index 4e2e472..c3341cb 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -1240,7 +1240,6 @@ static int __init crash_notes_memory_init(void)
}
return 0;
}
-module_init(crash_notes_memory_init)
/*
@@ -1520,7 +1519,13 @@ static int __init crash_save_vmcoreinfo_init(void)
return 0;
}
-module_init(crash_save_vmcoreinfo_init)
+static int __init crash_init(void)
+{
+ crash_notes_memory_init();
+ crash_save_vmcoreinfo_init();
+ return 0;
+}
+module_init(crash_init)
/*
* Move into place and start executing a preloaded standalone
--
1.7.1
next reply other threads:[~2012-05-30 10:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-30 10:05 Vladimir Davydov [this message]
2013-03-05 2:32 ` Simon Horman
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=1338372309-24983-1-git-send-email-vdavydov@parallels.com \
--to=vdavydov@parallels.com \
--cc=ebiederm@xmission.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
/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®