From: Dominik Brodowski <linux-X3ehHDuj6sIIGcDfoQAp7OTW4wlIGRCZ@public.gmane.org>
To: Shaohua Li <shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: ACPI-ML <linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Pallipadi Venkatesh
<venkatesh.pallipadi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org>
Subject: Re: [RFC 1/2] Modular acpi_idle policy
Date: Wed, 11 Jan 2006 00:00:44 +0100 [thread overview]
Message-ID: <20060110230044.GA30356@isilmar.linta.de> (raw)
In-Reply-To: <1136866373.5750.28.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
Hi,
On Tue, Jan 10, 2006 at 12:12:53PM +0800, Shaohua Li wrote:
> Modular C-state policy. And convert current algorithm to the framework.
> This is the updated patch I sent out to the list several months ago.
> Next patch will use the framework.
Have you reviewed my patches I sent to this list on 2005-12-31 yet? As they
touch a lot of this code _and_ (partly) make sense for _all_ C-state
policies, please consider merging them first before these patches.
> - /*
> - * Check BM Activity
> - * -----------------
> - * Check for bus mastering activity (if required), record, and check
> - * for demotion.
> - */
Whatever the C-State policy is, we need to track the BM activity.
> + cx = current_policy->pre_cx(pr);
> + if (cx != pr->power.state)
> + acpi_processor_power_activate(pr, cx);
> @@ -320,18 +256,19 @@ static void acpi_processor_idle(void)
> * go to an ISR rather than here. Need to instrument
> * base interrupt handler.
> */
> - sleep_ticks = 0xFFFFFFFF;
> + t2 = read_acpi_pmtimer();
> + sleep_ticks = ticks_elapsed(t1, t2);
This result may be _very_ wrong, at least with preemption enabled...
> + /* FIXME: we have trouble in MP case here */
Please solve it first before merging, there are MP systems using ACPI
C-States AFAICS...
> +static struct acpi_processor_cx* dfl_cstate_pre_cx(struct acpi_processor *pr)
This one misses important policy updates (see my mails to this mailing list
2005-12-31).
> + /* FIXME: we currently only support one extra policy */
And please provide for multiple extra policies, as unless Thomas, you and I
can agree on two policies, there'll be three ;-)
Thanks,
Dominik
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2006-01-10 23:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-10 4:12 [RFC 1/2] Modular acpi_idle policy Shaohua Li
[not found] ` <1136866373.5750.28.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
2006-01-10 23:00 ` Dominik Brodowski [this message]
[not found] ` <20060110230044.GA30356-JwFqNg2GrOVrgjWwlLH9qw@public.gmane.org>
2006-01-11 1:42 ` Shaohua Li
[not found] ` <1136943726.5750.52.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
2006-01-11 7:57 ` Dominik Brodowski
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=20060110230044.GA30356@isilmar.linta.de \
--to=linux-x3ehhduj6siigcdfoqap7otw4wligrcz@public.gmane.org \
--cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=trenn-l3A5Bk7waGM@public.gmane.org \
--cc=venkatesh.pallipadi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox