[PATCH ] cell: enable pause(0) in cpu_idle

Paul Mackerras paulus at samba.org
Sat Dec 17 09:22:37 EST 2005


Arnd Bergmann writes:

> Ok, tried that now, seems to work fine. I discovered that
> there is already a ppc_md callback for this purpose, but
> I changed it to not panic automatically after returning from
> that.

That looks reasonable, but unfortunately as a side-effect you have
changed what happens on pSeries.  Perhaps the best way around that
would be to change ppc_md.system_reset_exception to return 1 if it has
handled the exception, or 0 if it hasn't, and then make the code in
system_reset_exception do:

	if (ppc_md.system_reset_exception)
		if (ppc_md.system_reset_exception(regs))
			return;

with the obvious changes to machdep.h and
pSeries_system_reset_exception.

Thanks,
Paul.



More information about the Linuxppc64-dev mailing list