Re: [patch 1/1] unified spinlock initializationarch/um/drivers/port_kern.c

From: Andrew Morton
Date: Wed Mar 09 2005 - 18:26:20 EST


Russell King <rmk+lkml@xxxxxxxxxxxxxxxx> wrote:
>
> I'm not convinced about the practicality of converting all static
> initialisations to code-based initialisations though

This is the first one I recall seeing. All the other conversions were replacing

static spinlock_t lock = SPIN_LOCK_UNLOCKED;

with
static DEFINE_SPINLOCK(lock);

and replacing

{
lock = SPIN_LOCK_UNLOCKED;
}

with

{
spin_lock_init(lock);
}

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