From: Florian Fainelli <ffainelli@freebox.fr>
To: linux-kernel@vger.kernel.org
Cc: Dirk Brandewie <dirk.brandewie@gmail.com>,
sodaville@linutronix.de, Fenghua Yu <fenghua.yu@intel.com>
Subject: Re: [PATCH] coretemp: fix junction temperature for Intel CE4100
Date: Thu, 23 Dec 2010 10:57:11 +0100 [thread overview]
Message-ID: <201012231057.11940.ffainelli@freebox.fr> (raw)
In-Reply-To: <201012142217.07194.ffainelli@freebox.fr>
On Tuesday 14 December 2010 22:17:07 Florian Fainelli wrote:
> From: Florian Fainelli <ffainelli@freebox.fr>
>
> The Intel CE4100 System-on-a-Chip has a slightly higher junction
> temperature (110 degrees Celsius) than other Atom-based hardware.
>
> Cc: Dirk Brandewie <dirk.brandewie@gmail.com>
> Cc: sodaville@linutronix.de
> Cc: Fenghua Yu <fenghua.yu@intel.com>
> Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
Fenghua, is there anything wrong with that patch? Thank you.
> ---
> diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
> index 42de98d..e47b405 100644
> --- a/drivers/hwmon/coretemp.c
> +++ b/drivers/hwmon/coretemp.c
> @@ -178,12 +178,23 @@ static int __devinit adjust_tjmax(struct cpuinfo_x86
> *c, u32 id, struct device *
>
> host_bridge = pci_get_bus_and_slot(0, PCI_DEVFN(0, 0));
>
> - if (host_bridge && host_bridge->vendor == PCI_VENDOR_ID_INTEL
> - && (host_bridge->device == 0xa000 /* NM10 based nettop */
> - || host_bridge->device == 0xa010)) /* NM10 based netbook */
> - tjmax = 100000;
> - else
> - tjmax = 90000;
> + if (host_bridge && host_bridge->vendor == PCI_VENDOR_ID_INTEL) {
> + switch (host_bridge->device) {
> + /* NM10 based nettop */
> + case 0xa000:
> + /* NM10 based netbook */
> + case 0xa010:
> + tjmax = 100000;
> + break;
> + /* IntelCE Sodaville (CE4100) */
> + case 0x0708:
> + tjmax = 110000;
> + break;
> + default:
> + tjmax = 90000;
> + break;
> + }
> + }
>
> pci_dev_put(host_bridge);
> }
next prev parent reply other threads:[~2010-12-23 9:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-14 21:17 [PATCH] coretemp: fix junction temperature for Intel CE4100 Florian Fainelli
2010-12-23 9:57 ` Florian Fainelli [this message]
2010-12-25 22:28 ` Yu, Fenghua
2010-12-27 10:04 ` Florian Fainelli
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=201012231057.11940.ffainelli@freebox.fr \
--to=ffainelli@freebox.fr \
--cc=dirk.brandewie@gmail.com \
--cc=fenghua.yu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sodaville@linutronix.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