Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181948
b: refs/heads/master
c: 6b9c9b8
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and Benjamin Herrenschmidt committed Feb 19, 2010
1 parent 308889d commit d8e6375
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5181e7909b28abe5ce6674412a74167fd074824a
refs/heads/master: 6b9c9b8a66f7696ce392d34f90d4d6aa7045f51d
14 changes: 7 additions & 7 deletions trunk/arch/powerpc/mm/hash_native_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#define HPTE_LOCK_BIT 3

static DEFINE_SPINLOCK(native_tlbie_lock);
static DEFINE_RAW_SPINLOCK(native_tlbie_lock);

static inline void __tlbie(unsigned long va, int psize, int ssize)
{
Expand Down Expand Up @@ -104,7 +104,7 @@ static inline void tlbie(unsigned long va, int psize, int ssize, int local)
if (use_local)
use_local = mmu_psize_defs[psize].tlbiel;
if (lock_tlbie && !use_local)
spin_lock(&native_tlbie_lock);
raw_spin_lock(&native_tlbie_lock);
asm volatile("ptesync": : :"memory");
if (use_local) {
__tlbiel(va, psize, ssize);
Expand All @@ -114,7 +114,7 @@ static inline void tlbie(unsigned long va, int psize, int ssize, int local)
asm volatile("eieio; tlbsync; ptesync": : :"memory");
}
if (lock_tlbie && !use_local)
spin_unlock(&native_tlbie_lock);
raw_spin_unlock(&native_tlbie_lock);
}

static inline void native_lock_hpte(struct hash_pte *hptep)
Expand Down Expand Up @@ -433,7 +433,7 @@ static void native_hpte_clear(void)
/* we take the tlbie lock and hold it. Some hardware will
* deadlock if we try to tlbie from two processors at once.
*/
spin_lock(&native_tlbie_lock);
raw_spin_lock(&native_tlbie_lock);

slots = pteg_count * HPTES_PER_GROUP;

Expand All @@ -457,7 +457,7 @@ static void native_hpte_clear(void)
}

asm volatile("eieio; tlbsync; ptesync":::"memory");
spin_unlock(&native_tlbie_lock);
raw_spin_unlock(&native_tlbie_lock);
local_irq_restore(flags);
}

Expand Down Expand Up @@ -520,7 +520,7 @@ static void native_flush_hash_range(unsigned long number, int local)
int lock_tlbie = !cpu_has_feature(CPU_FTR_LOCKLESS_TLBIE);

if (lock_tlbie)
spin_lock(&native_tlbie_lock);
raw_spin_lock(&native_tlbie_lock);

asm volatile("ptesync":::"memory");
for (i = 0; i < number; i++) {
Expand All @@ -535,7 +535,7 @@ static void native_flush_hash_range(unsigned long number, int local)
asm volatile("eieio; tlbsync; ptesync":::"memory");

if (lock_tlbie)
spin_unlock(&native_tlbie_lock);
raw_spin_unlock(&native_tlbie_lock);
}

local_irq_restore(flags);
Expand Down

0 comments on commit d8e6375

Please sign in to comment.