Re: Weirdness in SPARC patches in 2.1.127

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Mon, 9 Nov 1998 20:36:00 +0100 (MET)


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

bitops_spinlock is never used in any of the spinlock macros and is accessed
solely by the assembly bitops implementation, so it can but may not be the
same type.

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.127 on a sparc64 machine (498.80 BogoMips).
___________________________________________________________________

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