This patch takes advantage of the infrastructure introduced in the lastpatch, and allows the processor idle algorithm to proactively choose ac-state based on the time the next timer interrupt is expected to occur.It preserves the residency metric, so the algorithm should, in theory,remain effective against bursts of activity from other interruptsources.

This patch is mostly intended to be illustrative. There may be some"#ifdef CONFIG_ACPI" issues, and I would appreciate any advice onimplementing this more cleanly.