From: Daniel Mack <daniel@caiaq.de>
To: Thomas Renninger <trenn@suse.de>
Cc: linux-kernel@vger.kernel.org,
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,
Dave Jones <davej@redhat.com>
Subject: Re: [PATCH] cpufreq: Unbreak build for !SMP: symlinked cpus cannot happen for !SMP
Date: Thu, 9 Jul 2009 10:48:40 +0200 [thread overview]
Message-ID: <20090709084840.GR9464@buzzloop.caiaq.de> (raw)
In-Reply-To: <200907091043.39607.trenn@suse.de>
On Thu, Jul 09, 2009 at 10:43:35AM +0200, Thomas Renninger wrote:
> Or like that:
> Either all #ifdef CONFIG_SMP related conditionals to managed cpus
> should vanish or all should be covered. This one takes the latter
> approach.
Dave Jones fixed it already, see
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5e1596f75395e7a402e1059c518e633d2732dcf8
Daniel
> ---
> 'managed_policy' is used for the non-smp case in line 941.
>
> Make the symlink code conditional to #ifdef CONFIG_SMP as already
> done at other places.
>
> Signed-off-by: Thomas Renninger <trenn@suse.de>
>
> Index: cpufreq/drivers/cpufreq/cpufreq.c
> ===================================================================
> --- cpufreq.orig/drivers/cpufreq/cpufreq.c
> +++ cpufreq/drivers/cpufreq/cpufreq.c
> @@ -930,6 +930,7 @@ static int cpufreq_add_dev(struct sys_de
> }
> spin_unlock_irqrestore(&cpufreq_driver_lock, flags);
>
> +#ifdef CONFIG_SMP
> /* symlink affected CPUs */
> for_each_cpu(j, policy->cpus) {
> if (j == cpu)
> @@ -947,6 +948,7 @@ static int cpufreq_add_dev(struct sys_de
> goto err_out_unregister;
> }
> }
> +#endif
>
> policy->governor = NULL; /* to assure that the starting sequence is
> * run in cpufreq_set_policy */
>
prev parent reply other threads:[~2009-07-09 8:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 19:24 [PATCH] cpufreq: unbreak build for !CONFIG_SMP Daniel Mack
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 [this message]
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=20090709084840.GR9464@buzzloop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.