[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1247081067-21964-1-git-send-email-daniel@caiaq.de>
Date: Wed, 8 Jul 2009 21:24:27 +0200
From: Daniel Mack <daniel@...aq.de>
To: linux-kernel@...r.kernel.org
Cc: Daniel Mack <daniel@...aq.de>,
Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>,
Venkatesh Pallipadi <venkatesh.pallipadi@...el.com>,
rjw@...k.pl, mingo@...e.hu, Shaohua Li <shaohua.li@...el.com>,
Pekka Enberg <penberg@...helsinki.fi>,
Dave Young <hidave.darkstar@...il.com>,
Rusty Russell <rusty@...tcorp.com.au>,
sven.wegener@...aler.net, cpufreq@...r.kernel.org,
Thomas Renninger <trenn@...e.de>, Dave Jones <davej@...hat.com>
Subject: [PATCH] cpufreq: unbreak build for !CONFIG_SMP
'managed_policy' is used for the non-smp case in line 941.
Remove #ifdef CONFIG_SMP for its declaration in order to make cpufreq.c
build on systems with CONFIG_SMP=n.
Signed-off-by: Daniel Mack <daniel@...aq.de>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@...el.com>
Cc: rjw@...k.pl
Cc: mingo@...e.hu
Cc: Shaohua Li <shaohua.li@...el.com>
Cc: Pekka Enberg <penberg@...helsinki.fi>
Cc: Dave Young <hidave.darkstar@...il.com>
Cc: "Rafael J. Wysocki" <rjw@...k.pl>
Cc: Rusty Russell <rusty@...tcorp.com.au>
Cc: sven.wegener@...aler.net
Cc: cpufreq@...r.kernel.org
Cc: Thomas Renninger <trenn@...e.de>
Cc: Dave Jones <davej@...hat.com>
---
drivers/cpufreq/cpufreq.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index c668ac8..d160867 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -776,9 +776,7 @@ static int cpufreq_add_dev(struct sys_device *sys_dev)
struct sys_device *cpu_sys_dev;
unsigned long flags;
unsigned int j;
-#ifdef CONFIG_SMP
struct cpufreq_policy *managed_policy;
-#endif
if (cpu_is_offline(cpu))
return 0;
--
1.6.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists