aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-msm/msm_rq_stats.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/arm/mach-msm/msm_rq_stats.c b/arch/arm/mach-msm/msm_rq_stats.c
index 1b328cb930d..70733cab0cf 100644
--- a/arch/arm/mach-msm/msm_rq_stats.c
+++ b/arch/arm/mach-msm/msm_rq_stats.c
@@ -1,4 +1,4 @@
-/* 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;
- }
+ 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;
- }
+ rq_info.init = 0;
+ return -ENOSYS;
+#endif
pm_notifier(system_suspend_handler, 0);
return 0;