All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCHv7 1/1] Hwmon: Merge Pkgtemp with Coretemp
Date: Tue, 17 May 2011 15:17:22 +0000	[thread overview]
Message-ID: <20110517151722.GA4385@ericsson.com> (raw)
In-Reply-To: <1305384608-17357-1-git-send-email-durgadoss.r@intel.com>

On Tue, May 17, 2011 at 01:51:44AM -0400, R, Durgadoss wrote:
> Hi Guenter,
> 
> > Hi,
> > 
> > I did some testing on a SandyBridge system with two CPUs.
> > 
> > If I take all cores of the second CPU offline, the second instance of the
> > driver
> > still sticks around and tries to display the package sensor temperature.
> > However, the temperature is always reported as "N/A". I think the driver
> > instance should be removed if all cores of a CPU are offline.
> 
> I agree with you that the driver instance should be removed, in this case.
> But how can we find that all cores of a CPU are offline ?
> One way is to use a "count" variable and manipulate it when cores are
> Onlined/offlined. Kindly let me know of any better ways to implement this.
> 
You can define a counter in platform_data, or write a simple function to count
the number of online cores for a given physical processor in pdev_list.

A simpler mechanism might be to use cpu_core_mask(). Not sure if that works, though.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      parent reply	other threads:[~2011-05-17 15:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-14  9:19 [lm-sensors] [PATCHv7 1/1] Hwmon: Merge Pkgtemp with Coretemp Durgadoss R
2011-05-16 21:44 ` Guenter Roeck
2011-05-17  5:54 ` R, Durgadoss
2011-05-17 15:17 ` Guenter Roeck [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=20110517151722.GA4385@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=lm-sensors@vger.kernel.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.