Re: [profile] amortize atomic hit count increments

Andrea Arcangeli
2004-09-14T11:40:43Z

On Mon, Sep 13, 2004 at 09:47:48PM -0700, William Lee Irwin III wrote:
> timer interrupt, usually at boot. The following patch attempts to
> amortize the atomic operations done on the profile buffer to address
> this stability concern. This patch has nothing to do with performance;

isn't it *much* simpler and much more efficient to just have a per-cpu
idle function? I seriously doubt you'll get simultaneous collisions on
anything but the 'halt' instruction in the idle function.