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