Questionable value of what? TSC or preemption?
> However if you simply
> disable pre-emption during udelay() calls then you've just screwed yourself
> by removing 99% of the use pre-emption had.
I wouldn't want to disable preemption during udelays.
Either I would disable and enable preemption on every
pass through the loop. Or I would just manually check
for every pass if I should give up the CPU. This
obviously requires more computation for every pass,
but being a busy waiting loop I don't see a problem.
Otherwise I would lock the process to a fixed CPU for
the duration of udelay.
> Given all the pain its probably better to not use the TSC
Do we have better alternatives for high resolution
-- Kasper Dupont -- der bruger for meget tid på usenet. For sending spam use mailto:email@example.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to firstname.lastname@example.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/