change function names
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
#if 0
|
||||
|
||||
void aal_mc_spinlock_init(aal_spinlock_t *lock)
|
||||
void ihk_mc_spinlock_init(ihk_spinlock_t *lock)
|
||||
{
|
||||
*lock = 0;
|
||||
}
|
||||
|
||||
void aal_mc_spinlock_lock(aal_spinlock_t *lock, unsigned long *flags)
|
||||
void ihk_mc_spinlock_lock(ihk_spinlock_t *lock, unsigned long *flags)
|
||||
{
|
||||
int inc = 0x00010000;
|
||||
int tmp;
|
||||
@@ -26,7 +26,7 @@ void aal_mc_spinlock_lock(aal_spinlock_t *lock, unsigned long *flags)
|
||||
: "+Q" (inc), "+m" (*lock), "=r" (tmp) : : "memory", "cc");
|
||||
}
|
||||
|
||||
void aal_mc_spinlock_unlock(aal_spinlock_t *lock, unsigned long *flags)
|
||||
void ihk_mc_spinlock_unlock(ihk_spinlock_t *lock, unsigned long *flags)
|
||||
{
|
||||
asm volatile ("lock incw %0" : "+m"(*lock) : : "memory", "cc");
|
||||
cpu_restore_interrupt(*flags);
|
||||
|
||||
Reference in New Issue
Block a user