lkml.org 
[lkml]   [1998]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectIs test_and_set_bit() _BUS_ atomic? [cli/sti in char/vt.c [patch]]
On Sat, 30 May 1998, Pavel Machek wrote:

>Because in i386 port it _IS_ atomic, so in arch/i386 you can assume
>that test_and_set_bit is atomic. Strange, is not it? Should be
>documented somewhere.

I don' t bother of arch/i386! The topic is about common code!!!!!!!!!!

OK, I' ll try again (and better):

Can I use test_and_set_bit() to avoid a SMP race in
drivers/char/lp.c and so to make lp_open() SMP safe? (I don' t need it
atomic in respect of interrupts but I need it atomic in respect of the
RAM memory BUS)

Thanks.

Andrea[s] Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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