From: Bernhard W. <ber...@gm...> - 2007-08-13 15:40:41
|
Hello, following kernel commit has removed rdtcl() from being exported in userspace. It’s now inside __KERNEL__ ifdef. commit 4bc5aa91fb1e544ad37805520030a0d9fc6e11d3 Author: H. Peter Anvin <hp...@zy...> Date: Wed May 2 19:27:12 2007 +0200 [PATCH] x86: Clean up x86 control register and MSR macros (corrected) This patch is based on Rusty's recent cleanup of the EFLAGS-related macros; it extends the same kind of cleanup to control registers and MSRs. It also unifies these between i386 and x86-64; at least with regards to MSRs, the two had definitely gotten out of sync. Signed-off-by: H. Peter Anvin <hp...@zy...> Signed-off-by: Andi Kleen <ak...@su...> Therefore, checking if <asm/msr.h> exists is not sufficient any more. rdtscl() is also problematic on multi-core systems. I guess it's time to get rid of rdtscl() ... Thanks, Bernhard |