Re: [profile] amortize atomic hit count increments

From: Andrea Arcangeli
Date: Tue Sep 14 2004 - 06:47:51 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/