perfctr virtual cleanup
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.
Signed-off-by Mikael Pettersson <[email protected]>
drivers/perfctr/virtual.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
drivers/perfctr/virtual.c +1 -2
@@ -227,8 +227,7 @@ static inline void vperfctr_resume(strucstatic 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 ; }