mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nathan Lynch <ntl@pobox.com>
To: Ashok Raj <ashok.raj@intel.com>
Cc: akpm@osdl.org, linux@brodo.de, davej@redhat.com,
	zwane@arm.linux.org.uk, linux-kernel@vger.kernel.org,
	Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Subject: Re: [patch 4/4] create and destroy cpufreq sysfs entries based on cpu notifiers.
Date: Mon, 7 Nov 2005 05:41:44 -0600	[thread overview]
Message-ID: <20051107114144.GH7806@otto> (raw)
In-Reply-To: <20051021204327.843400000@araj-sfield>

Hi Ashok,

Ashok Raj wrote:
> cpufreq entries in sysfs should only be populated when CPU is online state.
> When we either boot with maxcpus=x and then boot the other cpus by 
> echoing to sysfs online file, these entries should be created and destroyed
> when CPU_DEAD is notified. Same treatement as cache entries under sysfs.
> 
> We place the processor in the lowest frequency, so hw managed P-State 
> transitions can still work on the other threads to save power.
> 
> Primary goal was to just make these directories appear/disapper dynamically.

I see this patch series has already been merged, but in light of the
issues that it has caused[1], and the hack that Andrew is carrying to
deal with them[2], could we revisit the original justification for
these changes?

Why is it important that cpufreq-related files in sysfs be added and
removed as cpus go online and offline?  I see that the information
that these entries provide can be derived only when the cpu is online,
is that the primary justification?

Would it be undesirable for the cpufreq drivers to create their
entries under all cpu sysdevs at init time, regardless of whether the
cpus are online?  The "show" methods for entries attached to offline
cpus could be made to return "Unavailable" or some equivalent.

I'm not terribly familiar with x86 or cpufreq, so forgive me if I'm
missing something obvious.


[1] http://lkml.org/lkml/2005/10/31/144
[2] ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.14/2.6.14-mm1/broken-out/cpu-hotplug-fix-locking-in-cpufreq-drivers.patch

  reply	other threads:[~2005-11-07 11:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-21 20:38 [patch 0/4] dynamically create "cache" and "cpufreq" entries with CPU hotplug Ashok Raj
2005-10-21 20:38 ` [patch 1/4] introduce get_cpu_sysdev() to retrieve a sysfs entry for a cpu Ashok Raj
2005-10-21 20:38 ` [patch 2/4] create and destroy cache sysfs entries based on cpu notifiers Ashok Raj
2005-10-21 20:38 ` [patch 3/4] Remove cpu_sys_devices in cpufreq subsystem Ashok Raj
2005-10-21 20:38 ` [patch 4/4] create and destroy cpufreq sysfs entries based on cpu notifiers Ashok Raj
2005-11-07 11:41   ` Nathan Lynch [this message]
2005-11-07 14:27     ` Ashok Raj

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=20051107114144.GH7806@otto \
    --to=ntl@pobox.com \
    --cc=akpm@osdl.org \
    --cc=ashok.raj@intel.com \
    --cc=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@brodo.de \
    --cc=venkatesh.pallipadi@intel.com \
    --cc=zwane@arm.linux.org.uk \
    /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

all inboxes | Powered by JetHome®