Re: [PATCH RFC] sched: add notifier for process migration
From: Avi Kivity
Date: Sat Oct 10 2009 - 05:06:56 EST
On 10/10/2009 09:14 AM, Peter Zijlstra wrote:
Why not do something like:
struct {
u64 tsc;
u32 aux;
} tscp = rdtscp();
local_time_info = timeinfo[tscp_cpu(tscp)];
/* yay, consistent tsc and timeinfo !! */
First, not all processors support rdtscp. Second, timeinfo might change
at any time due to cpu frequency changes or the entire cpu being
migrated, so we need to loop in any case.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
--
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/