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 08:57:46 +0100 [thread overview]
Message-ID: <20060111075746.GA599@isilmar.linta.de> (raw)
In-Reply-To: <1136943726.5750.52.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
Hi,
On Wed, Jan 11, 2006 at 09:42:01AM +0800, Shaohua Li wrote:
> > 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.
> Len hopes policy changes can be smoothly made. The approach is we keep
> current policy as default and add new policies as module. If you change
> the policy a lot, you'd better make a module.
OK, that's fine with me :-)
> > > - /*
> > > - * 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.
> It's policy specific, right? No reason generic code do the BM activity
> track.
Not exactly. _Every_ C-State policy must check whether there is BM activity
and not enter C3-type sleep. How it keeps track of "past" BM activity, is up
to the policy, that's correct. But I'd favour it if every policy just would
need to call one function (acpi_processor_check_bm_activity) which returns
one on current bus master activity and zero if there is no such activity.
This probing of the hardware is _not_ policy-specific.
> > This result may be _very_ wrong, at least with preemption enabled...
> IIRC, with Ingo's patch, idle thread can't be preempted at any places in
> current kernel. Yes, the result may be very wrong, but it's better than
> 0xFFFFFFFF.
Well, last time I looked that was the case. Might have changed in between,
though... one more reason to add a schedule() call at the place I suggested
;-)
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
prev parent reply other threads:[~2006-01-11 7:57 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
[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 [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=20060111075746.GA599@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