On Wed, 2012-12-26 at 11:10 -0800, Eric Dumazet wrote:

> +#define DELAY_HASH_SHIFT 4
> +DEFINE_PER_CPU(int [1 << DELAY_HASH_SHIFT], spinlock_delay) = { 
> +     MIN_SPINLOCK_DELAY, MIN_SPINLOCK_DELAY,
> +     MIN_SPINLOCK_DELAY, MIN_SPINLOCK_DELAY,
> +     MIN_SPINLOCK_DELAY, MIN_SPINLOCK_DELAY,
> +     MIN_SPINLOCK_DELAY, MIN_SPINLOCK_DELAY,
> +     MIN_SPINLOCK_DELAY, MIN_SPINLOCK_DELAY,
> +     MIN_SPINLOCK_DELAY, MIN_SPINLOCK_DELAY,
> +     MIN_SPINLOCK_DELAY, MIN_SPINLOCK_DELAY,
> +     MIN_SPINLOCK_DELAY, MIN_SPINLOCK_DELAY,
> +};

This can use the following initialize by the way :

DEFINE_PER_CPU(int [1 << DELAY_HASH_SHIFT], spinlock_delay) = {
        [0 ... (1 << DELAY_HASH_SHIFT) - 1] = MIN_SPINLOCK_DELAY,
};



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

Reply via email to