Re: 2.6.4-rc2-mm1: IPMI_SMB doesnt compile

From: Denis Vlasenko
Date: Wed Mar 10 2004 - 16:28:29 EST


On Wednesday 10 March 2004 21:50, Davis, Todd C wrote:
> The problem that is being addressed here is the need to avoid process
> switching when sending IPMI messages over the SMBus/I2C bus. When the
> kernel has panic'ed or is shutting down bus transactions need to
> complete so the i2c bus drivers need to spin rather than calling
> schedule.
>
> The i2c_spin_delay is a flag that supports a revised inline function
> i2c_delay() that was in i2c.h at one time.
>
> static inline void i2c_delay(signed long timeout)
> {
> if( i2c_spin_delay ) {
> int i;
> for( i=0 ; i<100 ; i++ )
> udelay(timeout*(1000000/HZ/100));
> } else {
> set_current_state(TASK_INTERRUPTIBLE);
> schedule_timeout(timeout);
> }
> }

too big for inline keyword
--
vda

-
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/