[lkml]   [1996]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Is clobber "memory" in include/asm-i386/system.h necessary?
: "volatile" itself causes suboptimal code to be generated
: even in places where it's unnecessary, such as between cli() and sti().

What about MP machines? Wouldn't volatile still be needed between a
cli() and sti() because other processors might change the value out
from under you? Granted, a higher level of locking would prevent
that, but there are cases where you might want that to happen (like in
the lock manager code, assuming it uses atomic memory access


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