Will,
On Tue, Feb 13, 2007 at 01:14:19PM -0500, William Cohen wrote:
> >
> >I have decided to make a pre-release of my 2.6.20 perfmon2 kernel patch.
> >It has been a very busy week chasing bugs on x86 and ia-64. I fixed a
> >serious deadlock condition in pfm_restart() today.
> >
> >Before making a broader announce, and because I know many of you have been
> >awaiting this release, I have decided to release what I have so far.
> >I encourage you to test it and stress it. There may still be an issue that
> >I
> >need to chase down, that is why a make a limited release.
> >
> >There are no new feature in this release, simply some code restructuring
> >especially with the arch-specific layer. Several important bugs have been
> >fixed related to set switching and in-flight interrupts.
> >
> >Please try it out, and report any suspicious results.
> >
> >Hopefully by next week, we'll have something that I can release to the
> >wider audience.
> >
> >You can grab the pre-release at:
> > ftp://ftp.hpl.hp.com/pub/linux-ia64/perfmon-new-base-070209.tar.gz
> > MD5SUM: a4aec4a65de1cdb137d26313713e52c4
> >Thanks.
> >
>
> Starting to look over the patch for the 2.6.20 kernel.
>
>
> In base.diff is the reason there are not matching enter_idle() in the
> various functions x86_64 and i386 is because the loop in cpu_idle()
> has the enter_idle()? I noticed that the ia64 code had matching
> exit_idle() and enter_idle().
>
I think you are asking why we have enter_idle()/__enter_idle()
and just __exit_idle()?
- enter_idle() is used in all first level interrupt handler. It is only
useful when call by the idle thread, so this function checks pid
- __enter_idle() is a simplified version of the above without the pid
check because
we know it is ONLY called by the idle thread
- __exit_idle() is ONLY called from the idle thread
On IA-64, we need the exit/enter idle outside the idle loop. But I need to
double-check that
once again.
--
-Stephane
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/