From: Michael Neuling <mikey@neuling.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linuxppc-dev@ozlabs.org, Christian Krafft <parabelboi@bopserverein.de>
Subject: Re: [PATCH] powerpc/cell: fix dependency in cpufreq
Date: Wed, 11 Feb 2009 09:27:23 +1100 [thread overview]
Message-ID: <24452.1234304843@neuling.org> (raw)
In-Reply-To: <200902101655.17013.arnd@arndb.de>
> cbe_cpufreq has a partial dependency on cbe_cpufreq_pmi, which cannot
> be easily expressed in Kconfig. This fixes it by introducing an
> extra Kconfig symbol CBE_CPUFREQ_PMI_ENABLE. To make the dependency
> clearer, turn PPC_PMI into an automatic symbol.
>
> Reported-by: Michael Neuling <mikey@neuling.org>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Michael Neuling <mikey@neuling.org>
Arnd, this fixes one of the problems, but not the cbe table issue I
reported in the same thread here (sorry I should have stared a new
thread):
http://ozlabs.org/pipermail/linuxppc-dev/2009-February/068154.html
Seems to be a similar problem when CONFIG_CPU_FREQ_TABLE is a module.
Mikey
>
> ---
>
> This is the best I could come up with.
>
> --- a/arch/powerpc/platforms/Kconfig
> +++ b/arch/powerpc/platforms/Kconfig
> @@ -91,15 +91,6 @@ config RTAS_FLASH
> tristate "Firmware flash interface"
> depends on PPC64 && RTAS_PROC
>
> -config PPC_PMI
> - tristate "Support for PMI"
> - depends on PPC_IBM_CELL_BLADE
> - help
> - PMI (Platform Management Interrupt) is a way to
> - communicate with the BMC (Baseboard Management Controller).
> - It is used in some IBM Cell blades.
> - default m
> -
> config MMIO_NVRAM
> bool
> default n
> diff --git a/arch/powerpc/platforms/cell/Kconfig b/arch/powerpc/platforms/cel
l/Kconfig
> index 5cc3279..037f59a 100644
> --- a/arch/powerpc/platforms/cell/Kconfig
> +++ b/arch/powerpc/platforms/cell/Kconfig
> @@ -98,7 +98,7 @@ config PPC_IBM_CELL_RESETBUTTON
>
> config PPC_IBM_CELL_POWERBUTTON
> tristate "IBM Cell Blade power button"
> - depends on PPC_IBM_CELL_BLADE && PPC_PMI && INPUT_EVDEV
> + depends on PPC_IBM_CELL_BLADE && INPUT_EVDEV
> default y
> help
> Support Powerbutton on IBM Cell blades.
> @@ -118,9 +118,9 @@ config CBE_CPUFREQ
> For details, take a look at <file:Documentation/cpu-freq/>.
> If you don't have such processor, say N
>
> -config CBE_CPUFREQ_PMI
> - tristate "CBE frequency scaling using PMI interface"
> - depends on CBE_CPUFREQ && PPC_PMI && EXPERIMENTAL
> +config CBE_CPUFREQ_PMI_ENABLE
> + bool "CBE frequency scaling using PMI interface"
> + depends on CBE_CPUFREQ && EXPERIMENTAL
> default n
> help
> Select this, if you want to use the PMI interface
> @@ -128,6 +128,20 @@ config CBE_CPUFREQ_PMI
> processor will not only be able to run at lower speed,
> but also at lower core voltage.
>
> +config CBE_CPUFREQ_PMI
> + tristate
> + depends on CBE_CPUFREQ_PMI_ENABLE
> + default CBE_CPUFREQ
> +
> +config PPC_PMI
> + tristate
> + default y
> + depends on CBE_CPUFREQ_PMI || PPC_IBM_CELL_POWERBUTTON
> + help
> + PMI (Platform Management Interrupt) is a way to
> + communicate with the BMC (Baseboard Management Controller).
> + It is used in some IBM Cell blades.
> +
> config CBE_CPUFREQ_SPU_GOVERNOR
> tristate "CBE frequency scaling based on SPU usage"
> depends on SPU_FS && CPU_FREQ
>
next prev parent reply other threads:[~2009-02-10 22:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 0:46 [PATCH] powerpc/cell: fix dependency in cpufreq Michael Neuling
2009-02-10 1:01 ` Michael Ellerman
2009-02-10 1:48 ` Michael Neuling
2009-02-10 2:01 ` Michael Neuling
2009-02-10 15:55 ` Arnd Bergmann
2009-02-10 22:27 ` Michael Neuling [this message]
2009-02-10 6:51 ` Michael Neuling
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=24452.1234304843@neuling.org \
--to=mikey@neuling.org \
--cc=arnd@arndb.de \
--cc=linuxppc-dev@ozlabs.org \
--cc=parabelboi@bopserverein.de \
/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;
as well as URLs for NNTP newsgroup(s).