Re: Weirdness in SPARC patches in 2.1.127

Anton Blanchard (anton@progsoc.uts.edu.au)
Tue, 10 Nov 1998 11:41:30 +1100


> The file arch/sparc/kernel/smp.c defines:
>
> /* Kernel spinlock */
> spinlock_t kernel_flag = SPIN_LOCK_UNLOCKED;
>
> +/* Used to make bitops atomic */
> +unsigned char bitops_spinlock = 0;
> +
>
> Shouldn't both be the same type and initialization?

The spinlock is written in assembly to make the best of a bad situation.
If all bitops weren't required to be atomic then we wouldn't need to do this
hack.

Cheers,
Anton

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