All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: Jinsong Liu <jinsong.liu@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [PATCH 2] Add user PM control interface
Date: Wed, 10 Dec 2008 09:08:39 +0000	[thread overview]
Message-ID: <493F9527.76E4.0078.0@novell.com> (raw)
In-Reply-To: <706158FABBBA044BAD4FE898A02E4BC219CABA88@pdsmsx503.ccr.corp.intel.com>

Was this coordinated with whoever maintains general power management
tools on the Linux side? It would seem to me that adding this stuff to the
sysctl interface is nice only from a pure Xen perspective. With the general
rule of the kernel not supposed to use domctl and sysctl interfaces, it
would mean that these tools have to use a completely distinct code path
to handle the Xen case, whereas when this information was readily
accessible to the Dom0 kernel, it could mimic the standard sysfs interface
for the tools to use (with just the change that they need to be prepared
to find more CPUs there than the kernel reports it is running on).

Jan

>>> "Liu, Jinsong" <jinsong.liu@intel.com> 10.12.08 09:46 >>>
Add user PM control interface

This patch provide user PM control interface.
Now it only implements cpufreq related interface.

User can use libxc to get cpufreq parameters:
1. common parameter independent on cpufreq governor
    affected_cpus;
    scaling_available_frequencies;
    scaling_available_governors;
    scaling_driver;
    cpuinfo_cur_freq;
    cpuinfo_max_freq;
    cpuinfo_min_freq;
    scaling_max_freq;
    scaling_min_freq;
    scaling_governor
2. parameters depend on specific governor:
    userspace governor: scaling_setspeed;
    ondemand governor:  sampling_rate_max;
                        sampling_rate_min;
                        sampling_rate;
                        up_threshold;

User can also set cpufreq control parameters:
1. common control parameters:
    scaling_governor;
    scaling_max_freq;
    scaling_min_freq;
2. control parameters depend on specific governor:
    userspace governor: scaling_setspeed;
    ondemand governor:  sampling_rate;
                        up_threshold;

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>

  reply	other threads:[~2008-12-10  9:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10  8:46 [PATCH 2] Add user PM control interface Liu, Jinsong
2008-12-10  9:08 ` Jan Beulich [this message]
2008-12-10 10:04   ` Keir Fraser
2008-12-10 10:06     ` Keir Fraser
2008-12-10 10:32     ` Keir Fraser
2008-12-10 10:41       ` Jan Beulich
2008-12-10 13:08         ` Tian, Kevin

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=493F9527.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=jinsong.liu@intel.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.