diff options
Diffstat (limited to 'linux-2.6-xen-sparse/arch/xen/x86_64/kernel/apic.c')
-rw-r--r-- | linux-2.6-xen-sparse/arch/xen/x86_64/kernel/apic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/apic.c b/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/apic.c index 797459b0e5..1971de2e88 100644 --- a/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/apic.c +++ b/linux-2.6-xen-sparse/arch/xen/x86_64/kernel/apic.c @@ -45,10 +45,11 @@ int disable_apic; void smp_local_timer_interrupt(struct pt_regs *regs) { - int cpu = smp_processor_id(); profile_tick(CPU_PROFILING, regs); #ifndef CONFIG_XEN + int cpu = smp_processor_id(); + if (--per_cpu(prof_counter, cpu) <= 0) { /* * The multiplier may have changed since the last time we got |