Messages in this thread | | | Date | Sat, 25 Oct 2008 08:56:27 +0200 | From | Andi Kleen <> | Subject | Re: [PATCH 1/1] SGI X86 UV: Provide a System Activity Indicator driver |
| |
> Cool, thanks! I rewrote the patch to use current->pid, removing the > idle callback.
As a additional measure you could make the timer deferred when in idle state. Then you would only actually do something when changing from idle to non idle or keeps being busy, but nothing when a CPU stays idle for a longer time.
The frequency wouldn't necessarily be 1 second then though.
-Andi
| |