aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-16 01:28:56 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-05-16 01:28:56 -0400
commit8eebf9bcc51f9c3313487c16df43fcecc2e306f5 (patch)
treea0067f04bb7a3c96c3c632f6bcbb00cc4289dbc5 /arch
parent5f979b598981f99b0ebb324f56be9d4ca0d751bd (diff)
Add time stamps for schedule(), the timer interrupt, and the plugin
scheduler_tick() and schedule() callbacks.
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/apic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/i386/kernel/apic.c b/arch/i386/kernel/apic.c
index f8c5f2abd2..2e8909f570 100644
--- a/arch/i386/kernel/apic.c
+++ b/arch/i386/kernel/apic.c
@@ -44,6 +44,8 @@
44 44
45#include "io_ports.h" 45#include "io_ports.h"
46 46
47#include <linux/trace.h>
48
47/* 49/*
48 * cpu_mask that denotes the CPUs that needs timer interrupt coming in as 50 * cpu_mask that denotes the CPUs that needs timer interrupt coming in as
49 * IPIs in place of local APIC timers 51 * IPIs in place of local APIC timers
@@ -1279,6 +1281,8 @@ inline void smp_local_timer_interrupt(void)
1279{ 1281{
1280/* s64 offset; */ 1282/* s64 offset; */
1281 1283
1284 TS_TICK_START;
1285
1282 profile_tick(CPU_PROFILING); 1286 profile_tick(CPU_PROFILING);
1283#ifdef CONFIG_SMP 1287#ifdef CONFIG_SMP
1284 update_process_times(user_mode_vm(get_irq_regs())); 1288 update_process_times(user_mode_vm(get_irq_regs()));
@@ -1311,6 +1315,7 @@ inline void smp_local_timer_interrupt(void)
1311 * Currently this isn't too much of an issue (performance wise), 1315 * Currently this isn't too much of an issue (performance wise),
1312 * we can take more than 100K local irqs per second on a 100 MHz P5. 1316 * we can take more than 100K local irqs per second on a 100 MHz P5.
1313 */ 1317 */
1318 TS_TICK_END;
1314} 1319}
1315 1320
1316/* 1321/*