xfree86: Clean up powerpc barrier decls

I think the externs are there for the non-gcc case?  And maybe there was
some assembly code to implement that once?  Whatever, at this point on
ppc the compiler is either gcc or willing to pretend.  The macros below
the decls take care of the actual eieio so the externs can just go.

Also remove a comment that maybe made sense once upon a time.

Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Adam Jackson 2014-07-22 10:59:09 -04:00 committed by Keith Packard
parent b5141a1fab
commit 9b33e31d41

View File

@ -136,11 +136,6 @@ extern _X_EXPORT void xf86WriteMmio32LeNB (void *, unsigned long, unsigned int);
#endif /* __sparc__, __arm32__, __alpha__, __nds32__ */
#endif /* __arm__ */
#if defined(__powerpc__) && !defined(__OpenBSD__)
extern void mem_barrier(void);
extern void write_mem_barrier(void);
#endif /* __powerpc__ && !__OpenBSD */
#endif /* NO_INLINE || DO_PROTOTYPES */
#ifdef __GNUC__
@ -195,7 +190,7 @@ extern void write_mem_barrier(void);
#elif defined __powerpc__
#ifndef eieio /* We deal with arch-specific eieio() routines above... */
#ifndef eieio
#define eieio() __asm__ __volatile__ ("eieio" ::: "memory")
#endif /* eieio */
#define mem_barrier() eieio()