From: Daniel Mack <daniel@caiaq.de>
To: linux-kernel@vger.kernel.org
Cc: Daniel Mack <daniel@caiaq.de>,
Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>,
Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>,
rjw@sisk.pl, mingo@elte.hu, Shaohua Li <shaohua.li@intel.com>,
Pekka Enberg <penberg@cs.helsinki.fi>,
Dave Young <hidave.darkstar@gmail.com>,
Rusty Russell <rusty@rustcorp.com.au>,
sven.wegener@stealer.net, cpufreq@vger.kernel.org,
Thomas Renninger <trenn@suse.de>, Dave Jones <davej@redhat.com>
Subject: [PATCH] cpufreq: unbreak build for !CONFIG_SMP
Date: Wed, 8 Jul 2009 21:24:27 +0200 [thread overview]
Message-ID: <1247081067-21964-1-git-send-email-daniel@caiaq.de> (raw)
'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@caiaq.de>
Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: rjw@sisk.pl
Cc: mingo@elte.hu
Cc: Shaohua Li <shaohua.li@intel.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Dave Young <hidave.darkstar@gmail.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: sven.wegener@stealer.net
Cc: cpufreq@vger.kernel.org
Cc: Thomas Renninger <trenn@suse.de>
Cc: Dave Jones <davej@redhat.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
next reply other threads:[~2009-07-08 19:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 19:24 Daniel Mack [this message]
2009-07-09 8:43 ` [PATCH] cpufreq: Unbreak build for !SMP: symlinked cpus cannot happen for !SMP Thomas Renninger
2009-07-09 8:48 ` Daniel Mack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1247081067-21964-1-git-send-email-daniel@caiaq.de \
--to=daniel@caiaq.de \
--cc=cpufreq@vger.kernel.org \
--cc=davej@redhat.com \
--cc=hidave.darkstar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@polymtl.ca \
--cc=mingo@elte.hu \
--cc=penberg@cs.helsinki.fi \
--cc=rjw@sisk.pl \
--cc=rusty@rustcorp.com.au \
--cc=shaohua.li@intel.com \
--cc=sven.wegener@stealer.net \
--cc=trenn@suse.de \
--cc=venkatesh.pallipadi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox