Re: Weirdness in SPARC patches in 2.1.127

David S. Miller (davem@dm.cobaltmicro.com)
Mon, 9 Nov 1998 09:31:02 -0800


Date: Sun, 08 Nov 1998 21:36:07 -0400
From: Horst von Brand <vonbrand@sleipnir.valparaiso.cl>

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

It really doesn't matter, and it's only accessed in a hardcoded way in
assembly so we don't want to use spinlock_t and get the debugging
version of the type for example because the asm code doesn't want that.

Later,
David S. Miller
davem@dm.cobaltmicro.com

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