Peter Teoh wrote:
Q1: the assembly instruction: "rdtsc" will always get its clocking from PIT right?
I doubt it. I believe on x86 RDTSC just reads a bunch of registers updated by the CPU when it ticks. It's not really a separate programmable piece of hardware.
Q2: the remark for select_clocksource() said it will select the best, but the function is a loopless, deterministic function that just return value from a linked list. Hm.....cannot understand it usage...
You might want to trace execution from clocksource_register (and the functions that end up being called from it) in that case to see HOW the list is built.
-- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ