Expose powerpc_mb() to user-space. Currently needed for atomic.h users,
this may go away in the future.
This commit is contained in:
parent
f6b22a92ae
commit
7acd29f1d6
@ -29,6 +29,16 @@
|
||||
#ifndef _MACHINE_CPUFUNC_H_
|
||||
#define _MACHINE_CPUFUNC_H_
|
||||
|
||||
/*
|
||||
* Required for user-space atomic.h includes
|
||||
*/
|
||||
static __inline void
|
||||
powerpc_mb(void)
|
||||
{
|
||||
|
||||
__asm __volatile("eieio; sync" : : : "memory");
|
||||
}
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#include <sys/types.h>
|
||||
|
Loading…
Reference in New Issue
Block a user