Re: [PATCH 8/8] IPMI: Convert locked counters to atomics in the system interface

2008-02-13 Thread Andrew Morton
On Wed, 13 Feb 2008 10:34:32 -0600 Corey Minyard <[EMAIL PROTECTED]> wrote: > +struct smi_stats > +{ > + atomic_t short_timeouts; > + atomic_t long_timeouts; > + atomic_t timeout_restarts; > + atomic_t idles; > + atomic_t interrupts; > + atomic_t attentions; > + atomic_

[PATCH 8/8] IPMI: Convert locked counters to atomics in the system interface

2008-02-13 Thread Corey Minyard
From: Corey Minyard <[EMAIL PROTECTED]> Atomics are faster and neater than locked counters. Signed-off-by: Corey Minyard <[EMAIL PROTECTED]> --- Index: linux-2.6.24/drivers/char/ipmi/ipmi_si_intf.c === --- linux-2.6.24.orig/drivers/