From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Jan Beulich <jbeulich@novell.com>
Cc: fenghua.yu@intel.com, khali@linux-fr.org, r.marek@assembler.cz,
lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org
Subject: Re: x86/hwmon: conditionalize coretemp's dependency on PCI
Date: Fri, 24 Sep 2010 11:55:09 -0700 [thread overview]
Message-ID: <20100924185509.GA20155@ericsson.com> (raw)
In-Reply-To: <4C8E18790200007800015AF7@vpn.id2.novell.com>
On Mon, Sep 13, 2010 at 10:26:33AM -0000, Jan Beulich wrote:
> PCI specific code is needed only when Atom CPUs are potentially
> supported by the kernel.
>
> Signed-off-by: Jan Beulich <jbeulich@novell.com>
> Cc: Rudolf Marek <r.marek@assembler.cz>
>
> ---
> drivers/hwmon/Kconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
> --- linux-2.6.36-rc4/drivers/hwmon/Kconfig 2010-09-13 08:45:02.000000000 +0200
> +++ 2.6.36-rc4-x86-coretemp-maybe-pci/drivers/hwmon/Kconfig 2010-09-10 16:24:16.000000000 +0200
> @@ -401,7 +401,8 @@ config SENSORS_GL520SM
>
> config SENSORS_CORETEMP
> tristate "Intel Core/Core2/Atom temperature sensor"
> - depends on X86 && PCI && EXPERIMENTAL
> + depends on X86 && EXPERIMENTAL
> + depends on PCI || (!MATOM && !GENERIC_CPU && !X86_GENERIC)
> help
> If you say yes here you get support for the temperature
> sensor inside your CPU. Most of the family 6 CPUs
Resending my reply to this one as well. Again, apologies if there is duplication.
The coretemp code unconditionally calls pci functions, even if PCI is not defined.
I am concerned that this might cause problems. It might be better to stick with
the more generic dependency instead of trying to optimize too much.
Guenter
next prev parent reply other threads:[~2010-09-24 18:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-13 10:26 [PATCH] x86/hwmon: conditionalize coretemp's dependency on PCI Jan Beulich
2010-09-24 18:55 ` Guenter Roeck [this message]
2010-09-27 7:08 ` Jan Beulich
2010-09-27 12:16 ` Guenter Roeck
2010-09-27 12:46 ` Jan Beulich
2010-09-27 13:02 ` Guenter Roeck
2010-09-27 15:23 ` Jan Beulich
2010-09-28 7:17 ` Jean Delvare
2010-09-28 12:00 ` Guenter Roeck
2010-09-28 15:20 ` Jean Delvare
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=20100924185509.GA20155@ericsson.com \
--to=guenter.roeck@ericsson.com \
--cc=fenghua.yu@intel.com \
--cc=jbeulich@novell.com \
--cc=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=r.marek@assembler.cz \
/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).