lkml.org 
[lkml]   [1998]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Weirdness in SPARC patches in 2.1.127

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

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