Skip to contentSkip to conversation

perfctr virtual cleanup

PATCH New Mikael Pettersson 1 participant 1 message Nov 12, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 perfctr virtual cleanup

Per-process virtualised counters driver cleanup to be applied on top of yesterday's perfctr interrupt fixes patches:
- Check for pending overflow via new API function. Skip clearing pending interrupt flag: the low-level driver takes care of that. Both changes are required for ppc32.

 drivers/perfctr/virtual.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/perfctr/virtual.c +1 -2
diff -rupN linux-2.6.10-rc1-mm5/drivers/perfctr/virtual.c linux-2.6.10-rc1-mm5.perfctr-virtual-update2/drivers/perfctr/virtual.c
@@ -227,8 +227,7 @@ static inline void vperfctr_resume(struc
 static inline void vperfctr_resume_with_overflow_check(struct vperfctr *perfctr)
 {
 #ifdef CONFIG_PERFCTR_INTERRUPT_SUPPORT
-	if (perfctr->cpu_state.pending_interrupt) {
-		perfctr->cpu_state.pending_interrupt = 0;
+	if (perfctr_cpu_has_pending_interrupt(&perfctr->cpu_state)) {
 		vperfctr_handle_overflow(current, perfctr);
 		return;
 	}