Skip to contentSkip to conversation

powerpc/booke64: check napping in performance monitor interrupt

PATCH New Kevin Hao 1 participant 1 message Sep 26, 2013 PowerPC

lore
Share & tools
lore

Kevin Hao

author
#0 lore raw

PATCH 1/1 powerpc/booke64: check napping in performance monitor interrupt

The performance monitor interrupt is asynchronous, so we should check if the current processor is in napping status in the handler of this interrupt.

---
 arch/powerpc/kernel/exceptions-64e.S | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/kernel/exceptions-64e.S +1 -0
index 2d06704..68d74b4 100644
@@ -607,6 +607,7 @@ kernel_dbg_exc:
 	NORMAL_EXCEPTION_PROLOG(0x260, BOOKE_INTERRUPT_PERFORMANCE_MONITOR,
 				PROLOG_ADDITION_NONE)
 	EXCEPTION_COMMON(0x260, PACA_EXGEN, INTS_DISABLE)
+	CHECK_NAPPING()
 	addi	r3,r1,STACK_FRAME_OVERHEAD
 	bl	.performance_monitor_exception
 	b	.ret_from_except_lite
Signature · 1 line
1.8.3.1