Skip to contentSkip to conversation

KVM: PPC: e500: Eliminate preempt_disable in

PATCH Superseded Scott Wood 1 participant 1 message Jul 7, 2011

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Scott Wood

author
#0 lore raw

PATCH 3/5 KVM: PPC: e500: Eliminate preempt_disable in

The only place it makes sense to call this function already needs to have preemption disabled.

---
 arch/powerpc/kvm/e500_tlb.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
arch/powerpc/kvm/e500_tlb.c +1 -3
index d594ad2..a872732 100644
@@ -116,13 +116,11 @@ static inline int local_sid_lookup(struct id *entry)
 	return -1;
 }
 
-/* Invalidate all id mappings on local core */
+/* Invalidate all id mappings on local core -- call with preempt disabled */
 static inline void local_sid_destroy_all(void)
 {
-	preempt_disable();
 	__get_cpu_var(pcpu_last_used_sid) = 0;
 	memset(&__get_cpu_var(pcpu_sids), 0, sizeof(__get_cpu_var(pcpu_sids)));
-	preempt_enable();
 }
 
 static void *kvmppc_e500_id_table_alloc(struct kvmppc_vcpu_e500 *vcpu_e500)
Signature · 1 line
1.7.4.1