[PATCH][2.6.10-rc1-mm5][2/3] perfctr virtual cleanup

From: Mikael Pettersson
Date: Fri Nov 12 2004 - 16:51:14 EST


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.

Signed-off-by: Mikael Pettersson <mikpe@xxxxxxxxx>

drivers/perfctr/virtual.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)

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
--- linux-2.6.10-rc1-mm5/drivers/perfctr/virtual.c 2004-11-12 21:45:01.000000000 +0100
+++ linux-2.6.10-rc1-mm5.perfctr-virtual-update2/drivers/perfctr/virtual.c 2004-11-12 21:45:21.000000000 +0100
@@ -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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/