Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67a0eddc authored by Anil Kumar Mamidala's avatar Anil Kumar Mamidala
Browse files

msm: pm: Change the init level of pc debug counters



Change the init level of pc debug counters to fs init
to  update the debug counters when thermal is hotplugging
the core in the early boot.

Change-Id: I4798e1717ab933f1355138799a68aa0ba489eb7a
Signed-off-by: default avatarAnil Kumar Mamidala <amami@codeaurora.org>
parent 2741ea71
Loading
Loading
Loading
Loading
+16 −6
Original line number Diff line number Diff line
/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -857,15 +857,25 @@ static int __init msm_pm_drv_init(void)

	rc = platform_driver_register(&msm_cpu_pm_snoc_client_driver);

	if (rc) {
	if (rc)
		pr_err("%s(): failed to register driver %s\n", __func__,
				msm_cpu_pm_snoc_client_driver.driver.name);
	return rc;
}
late_initcall(msm_pm_drv_init);

static int __init msm_pm_debug_counters_init(void)
{
	int rc;

	return platform_driver_register(&msm_cpu_pm_driver);
	rc = platform_driver_register(&msm_cpu_pm_driver);

	if (rc)
		pr_err("%s(): failed to register driver %s\n", __func__,
				msm_cpu_pm_driver.driver.name);
	return rc;
}
late_initcall(msm_pm_drv_init);
fs_initcall(msm_pm_debug_counters_init);

int __init msm_pm_sleep_status_init(void)
{