From: Keir Fraser <keir.fraser@eu.citrix.com>
To: "Wei, Gang" <gang.wei@intel.com>, xen-devel@lists.xensource.com
Subject: Re: [PATCH 1/9] Add cpu idle pwr mgmt to xen
Date: Fri, 25 Apr 2008 14:00:33 +0100 [thread overview]
Message-ID: <C4379481.1FF24%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <094BCE01AFBE9646AF220B0B3F367AAB02FE2C6E@pdsmsx413.ccr.corp.intel.com>
On 25/4/08 06:07, "Wei, Gang" <gang.wei@intel.com> wrote:
> Add basic acpi C-states based cpu idle power mgmt in xen for x86.
>
> It includes:
> 1. hypercall definition for passing ACPI info.
> 2. C1/C2 support.
> 3. Mwait support, as well as legacy ioport.
> 4. Ladder policy from Linux kernel.
>
> A lot of code & ideas came from Linux.
Comments:
1. In the idle loop you can just replace default_idle() with (*pm_idle)()
directly.
2. Do not modify common/keyhandler.c. Instead add an __initcall() in
cpu_idle.c to register your keyhandler. The initcall function and your
keyhandler can both be 'static' functions.
3. I don't like ifdef COMPAT all over new files. Define a separate compat
shim file, built only for x86_64, which converts compat structures to native
64-bit structures. Then cpu_idle.c need know nothing about compat issues and
will be cleaner for it.
4. Don't define placeholders for Px and Tx info in the platform hypercall
header. They should be introduced when they are actually implemented.
That's it. I haven't looked at the other patches yet, but you can probably
make the above fixes and resubmit just this one patch without affecting the
others. I'll look at them after this one goes in.
-- Keir
next prev parent reply other threads:[~2008-04-25 13:00 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-25 5:07 [PATCH 1/9] Add cpu idle pwr mgmt to xen Wei, Gang
2008-04-25 13:00 ` Keir Fraser [this message]
2008-04-25 13:29 ` Wei, Gang
2008-04-26 9:55 ` Wei, Gang
2008-04-28 9:24 ` Jan Beulich
2008-04-30 3:27 ` Wei, Gang
2008-04-30 7:22 ` Jan Beulich
2008-04-30 8:54 ` Keir Fraser
2008-04-30 9:08 ` Wei, Gang
2008-04-30 9:12 ` Tian, Kevin
2008-04-30 9:18 ` Tian, Kevin
2008-04-30 9:35 ` Jan Beulich
2008-04-30 9:42 ` Tian, Kevin
2008-04-30 10:00 ` Keir Fraser
2008-04-30 10:25 ` Jan Beulich
2008-04-30 12:27 ` Keir Fraser
2008-04-30 10:25 ` Jan Beulich
2008-05-05 6:34 ` Tian, Kevin
2008-04-30 16:36 ` Wei, Gang
2008-05-01 0:48 ` Wei, Gang
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=C4379481.1FF24%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=gang.wei@intel.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.