Or you use rdtsc instructions for x86. There intel do guarantee that no two
rdtsc's execute in parallel on the same cpu and it counts in cpu clocks.
Unfortunately rdtsc is only on newer x86 cpus and not useful in some smp
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/