Re: x86: disable preemption in delay_tsc()

From: Ingo Molnar
Date: Fri Nov 16 2007 - 03:37:05 EST



* Avi Kivity <avi@xxxxxxxxxxxx> wrote:

> You can use preemption notifiers to get a callback when you are
> preempted. Not sure what you'd to with that callback, though.

but that should not be needed in this case. Why doesnt the TSC using
delay loop simply poll the CPU it is on and fix up the TSC?

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/