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

Commit 9f0e89cc authored by Murali Nalajala's avatar Murali Nalajala
Browse files

msm: msm_rq_stats: remove is_smp() API



is_smp() API is unavailable on few target codes.
Until this API is defined use CONFIG_SMP to know
whether target supports SPM are not.

CRs-fixed: 579034
Change-Id: I5bd5c208b18aae27d7f36e77e9d5b38639c2c00e
Signed-off-by: default avatarMurali Nalajala <mnalajal@codeaurora.org>
parent 7860079a
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
/* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2014, 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
@@ -355,11 +355,12 @@ static int __init msm_rq_stats_init(void)
	int ret;
	int i;
	struct cpufreq_policy cpu_policy;

#ifndef CONFIG_SMP
	/* Bail out if this is not an SMP Target */
	if (!is_smp()) {
	rq_info.init = 0;
	return -ENOSYS;
	}
#endif

	rq_wq = create_singlethread_workqueue("rq_stats");
	BUG_ON(!rq_wq);
@@ -395,11 +396,11 @@ late_initcall(msm_rq_stats_init);

static int __init msm_rq_stats_early_init(void)
{
#ifndef CONFIG_SMP
	/* Bail out if this is not an SMP Target */
	if (!is_smp()) {
	rq_info.init = 0;
	return -ENOSYS;
	}
#endif

	pm_notifier(system_suspend_handler, 0);
	return 0;