Re: [PATCH] new TSC based delay_tsc()

From: Ingo Molnar
Date: Mon Nov 19 2007 - 03:54:53 EST



* Marin Mitov <mitov@xxxxxxxxxxx> wrote:

> Hi all,
>
> This is a patch based on the Ingo's idea/patch to track delay_tsc()
> migration to another cpu by comparing smp_processor_id(). It is
> against kernel-2.6.24-rc3.
>
> What is different:
> 1. Using unsigned (instead of long) to unify for i386/x86_64.
> 2. Minimal preempt_disable/enable() critical sections
> (more room for preemption)
> 3. some statements have been rearranged, to account for
> possible under/overflow of left/TSC
>
> Tested on both: 32/64 bit SMP PREEMPT kernel-2.6.24-rc3
>
> Hope it is correct. Comments, please.

thanks! The changes look certainly good to me.

> Signed-off-by: Marin Mitov <mitov@xxxxxxxxxxx>

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>

Ingo
-
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/