From: Arnd Bergmann <arnd@arndb.de>
To: Jean Delvare <jdelvare@suse.de>
Cc: Viresh Kumar <viresh.kumar@linaro.org>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
cpufreq@vger.kernel.org
Subject: Re: Move of powerpc/cell cpufreq drivers
Date: Fri, 28 Mar 2014 19:02:32 +0100 [thread overview]
Message-ID: <201403281902.33169.arnd@arndb.de> (raw)
In-Reply-To: <20140328102616.20b45a0a@endymion.delvare>
On Friday 28 March 2014, Jean Delvare wrote:
> The current situation is kind of odd, because CPU_FREQ_CBE_PMI (bool)
> depends on CPU_FREQ_CBE (tristate) so it is possible to have
> CPU_FREQ_CBE=m and CPU_FREQ_CBE_PMI=y. If ppc_cbe_cpufreq_pmi really
> depends on ppc_cbe_cpufreq, then that will fail, as ppc_cbe_cpufreq as
> a module may not be loaded when ppc_cbe_cpufreq_pmi is initialized. The
> compiler would complain about missing symbols. So I suspect this
> dependency doesn't actually exist, otherwise after one year someone
> would have noticed the build breakage, right?
I believe CPU_FREQ_CBE can be built with support for CPU_FREQ_CBE_PMI
or without, but if the PMI code is a module, then CPU_FREQ_CBE
cannot be 'y'.
> As a conclusion I believe the following changes should be applied:
> * CPU_FREQ_CBE_PMI should be changed to a tristate.
> * CPU_FREQ_CBE_PMI should not depend on CPU_FREQ_CBE.
>
> I can write and submit the patches once it is confirmed that this
> changes are the right way to fix the problem.
If you do this, you should also add
depends on CPU_FREQ_CBE_PMI || !CPU_FREQ_CBE_PMI
to the CPU_FREQ_CBE option, to correctly handle the dependency.
I don't actually see a problem with the current code, other than
that CPU_FREQ_CBE_PMI could in theory be a module. This code is
used only for an IBM machine that has been end-of-service for
a couple of years. If anyone still wants to build kernels for
it, they probably want it built-in anyway, and not have
the same kernel run on other machines.
Arnd
next prev parent reply other threads:[~2014-03-28 18:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 9:26 Move of powerpc/cell cpufreq drivers Jean Delvare
2014-03-28 18:02 ` Arnd Bergmann [this message]
2014-03-28 18:44 ` Jean Delvare
2014-03-29 2:46 ` Arnd Bergmann
2014-03-29 14:35 ` Jean Delvare
2014-03-29 5:24 ` Viresh Kumar
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=201403281902.33169.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=cpufreq@vger.kernel.org \
--cc=jdelvare@suse.de \
--cc=rafael.j.wysocki@intel.com \
--cc=viresh.kumar@linaro.org \
/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.