Hi Stephane,

This patch replaces the get_cpu/put_cpu patch and moves the perfmon context switch calls inside the interrupts-disabled critical region.

- Corey

--
Corey Ashford
Software Engineer
IBM Linux Technology Center, Linux Toolchain
Beaverton, OR
503-578-3507
[EMAIL PROTECTED]

This patch moves the perfmon context switch calls inside the
interrupts-disabled critical region.

Index: linux-2.6/arch/powerpc/kernel/process.c
===================================================================
--- linux-2.6.orig/arch/powerpc/kernel/process.c        2008-07-09 
15:31:29.000000000 -0400
+++ linux-2.6/arch/powerpc/kernel/process.c     2008-07-15 14:57:42.000000000 
-0400
@@ -347,14 +347,14 @@
                new_thread->start_tb = current_tb;
        }
 #endif
+       local_irq_save(flags);
+
        if (test_tsk_thread_flag(prev, TIF_PERFMON_CTXSW))
                pfm_ctxsw_out(prev, new);
 
        if (test_tsk_thread_flag(new, TIF_PERFMON_CTXSW))
                pfm_ctxsw_in(prev, new);
 
-       local_irq_save(flags);
-
        account_system_vtime(current);
        account_process_vtime(current);
        calculate_steal_time();
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to