lkml.org 
[lkml]   [1998]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Weirdness in SPARC patches in 2.1.127
   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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.040 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site