diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-05-25 15:52:02 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-05-25 15:52:02 -0700 |
commit | 20dfa6c9f7fde68d14947632c52e995c1001f8ae (patch) | |
tree | 3a4f4d3c6ed3185b342fab39c254c1dd651260a7 /drivers/soc | |
parent | 73f6909d545566da77eb552fe1dbe82c70b9f44c (diff) | |
parent | a9c4ce1b7f68f531ee4561c8f7b51d614c76cb7c (diff) |
Merge "qcom: common_log: make dump registration as async"
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/qcom/common_log.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/soc/qcom/common_log.c b/drivers/soc/qcom/common_log.c index f001e820b797..1e8744b41e4c 100644 --- a/drivers/soc/qcom/common_log.c +++ b/drivers/soc/qcom/common_log.c @@ -17,6 +17,7 @@ #include <linux/kallsyms.h> #include <linux/slab.h> #include <linux/kmemleak.h> +#include <linux/async.h> #include <soc/qcom/memory_dump.h> #include <soc/qcom/minidump.h> #include <asm/sections.h> @@ -255,7 +256,7 @@ static void __init register_kernel_sections(void) } } -static int __init msm_common_log_init(void) +static void __init async_common_log_init(void *data, async_cookie_t cookie) { register_kernel_sections(); common_log_register_log_buf(); @@ -263,6 +264,12 @@ static int __init msm_common_log_init(void) register_pmic_dump(); register_vsense_dump(); register_rpm_dump(); +} + +static int __init msm_common_log_init(void) +{ + /* Initialize asynchronously to reduce boot time */ + async_schedule(async_common_log_init, NULL); return 0; } late_initcall(msm_common_log_init); |