• D
    [SPARC64]: Inline membar()'s again. · 4d803fcd
    David S. Miller 提交于
    Since GCC has to emit a call and a delay slot to the
    out-of-line "membar" routines in arch/sparc64/lib/mb.S
    it is much better to just do the necessary predicted
    branch inline instead as:
    
    	ba,pt	%xcc, 1f
    	 membar	#whatever
    1:
    
    instead of the current:
    
    	call	membar_foo
    	 dslot
    
    because this way GCC is not required to allocate a stack
    frame if the function can be a leaf function.
    
    This also makes this bug fix easier to backport to 2.4.x
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    4d803fcd
system.h 11.0 KB