Re: 2.6.4-rc2-mm1: IPMI_SMB doesnt compile

Denis Vlasenko
2004-03-10T21:24:10Z

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