[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1338372309-24983-1-git-send-email-vdavydov@parallels.com>
Date: Wed, 30 May 2012 14:05:09 +0400
From: Vladimir Davydov <vdavydov@...allels.com>
To: Eric Biederman <ebiederm@...ssion.com>
CC: Vladimir Davydov <vdavydov@...allels.com>,
<kexec@...ts.infradead.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] kexec: consolidate crash late initialization
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists