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

Commit c1f751eb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: msm_rq_stats: remove is_smp() API"

parents d4a7a935 9f0e89cc
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;